mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
Use std::fill instead of memset to initialize an array to avoid hardcoded count and a multiply. The outputed code is identical.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbbab8b959
commit
83f50fab53
@ -1293,7 +1293,7 @@ protected:
|
||||
|
||||
/// Remove all register classes.
|
||||
void clearRegisterClasses() {
|
||||
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE * sizeof(TargetRegisterClass*));
|
||||
std::fill(std::begin(RegClassForVT), std::end(RegClassForVT), nullptr);
|
||||
|
||||
AvailableRegClasses.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user