forked from OSchip/llvm-project
Use std::fill to simplify some code. NFC
llvm-svn: 265771
This commit is contained in:
parent
24c4f28ac9
commit
00230805f2
|
@ -790,8 +790,9 @@ void TargetLoweringBase::initActions() {
|
|||
memset(TruncStoreActions, 0, sizeof(TruncStoreActions));
|
||||
memset(IndexedModeActions, 0, sizeof(IndexedModeActions));
|
||||
memset(CondCodeActions, 0, sizeof(CondCodeActions));
|
||||
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
|
||||
memset(TargetDAGCombineArray, 0, array_lengthof(TargetDAGCombineArray));
|
||||
std::fill(std::begin(RegClassForVT), std::end(RegClassForVT), nullptr);
|
||||
std::fill(std::begin(TargetDAGCombineArray),
|
||||
std::end(TargetDAGCombineArray), 0);
|
||||
|
||||
// Set default actions for various operations.
|
||||
for (MVT VT : MVT::all_valuetypes()) {
|
||||
|
|
Loading…
Reference in New Issue