diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp b/contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp index 64c430e623b5..7ee21c8c6195 100644 --- a/contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp +++ b/contrib/llvm-project/clang/lib/AST/ScanfFormatString.cpp @@ -448,9 +448,7 @@ bool ScanfSpecifier::fixType(QualType QT, QualType RawQT, if (const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(RawQT)) { if (CAT->getSizeModifier() == ArraySizeModifier::Normal) FieldWidth = OptionalAmount(OptionalAmount::Constant, - CAT->getSize().getZExtValue() - 1, - "", 0, false); - + CAT->getZExtSize() - 1, "", 0, false); } return true; } |