diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
commit | f15014ff549a8686671a599f7b49ce9963769eaf (patch) | |
tree | c71b273ecd3983fba8bfd6777b534c045b120619 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 297bbf106288b0d673709ca02917d82e7bebdf1a (diff) | |
download | llvm-f15014ff549a8686671a599f7b49ce9963769eaf.zip llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.gz llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.bz2 |
Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"
This reverts commit ef8206320769ad31422a803a0d6de6077fd231d2.
- It conflicts with the existing llvm::size in STLExtras, which will now
never be called.
- Calling it without llvm:: breaks C++17 compat
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index f34a917..ab57423 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -966,7 +966,7 @@ TargetLoweringBase::getTypeConversion(LLVMContext &Context, EVT VT) const { // If this is a simple type, use the ComputeRegisterProp mechanism. if (VT.isSimple()) { MVT SVT = VT.getSimpleVT(); - assert((unsigned)SVT.SimpleTy < size(TransformToType)); + assert((unsigned)SVT.SimpleTy < array_lengthof(TransformToType)); MVT NVT = TransformToType[SVT.SimpleTy]; LegalizeTypeAction LA = ValueTypeActions.getTypeAction(SVT); |