diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp b/contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp index 16fbf52a517d..ab2e2bd0b306 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/SwiftCallingConv.cpp @@ -78,7 +78,7 @@ void SwiftAggLowering::addTypedData(QualType type, CharUnits begin) { QualType eltType = arrayType->getElementType(); auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); - for (uint64_t i = 0, e = arrayType->getSize().getZExtValue(); i != e; ++i) { + for (uint64_t i = 0, e = arrayType->getZExtSize(); i != e; ++i) { addTypedData(eltType, begin + i * eltSize); } |