summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/VLASizeChecker.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-25 11:45:40 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-25 11:45:40 +0000
commite302792b6155bb195f88610a1ebde38343cf402e (patch)
treea3dc32bec0d52b683d794838266f40a1e43cffd7 /clang/lib/Checker/VLASizeChecker.cpp
parent1bcddcaab3d1ad8c24e1771ac58a480aeac4230d (diff)
downloadbcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.tar.gz
bcm5719-llvm-e302792b6155bb195f88610a1ebde38343cf402e.zip
GCC didn't care for my attempt at API compatibility, so brute-force everything
to the new constants. llvm-svn: 112047
Diffstat (limited to 'clang/lib/Checker/VLASizeChecker.cpp')
-rw-r--r--clang/lib/Checker/VLASizeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/VLASizeChecker.cpp b/clang/lib/Checker/VLASizeChecker.cpp
index 936991d6133..0800b8be188 100644
--- a/clang/lib/Checker/VLASizeChecker.cpp
+++ b/clang/lib/Checker/VLASizeChecker.cpp
@@ -117,7 +117,7 @@ void VLASizeChecker::PreVisitDeclStmt(CheckerContext &C, const DeclStmt *DS) {
SVal EleSizeVal = ValMgr.makeIntVal(EleSize.getQuantity(), SizeTy);
// Multiply the array length by the element size.
- SVal ArraySizeVal = SV.EvalBinOpNN(state, BinaryOperator::Mul, ArrayLength,
+ SVal ArraySizeVal = SV.EvalBinOpNN(state, BO_Mul, ArrayLength,
cast<NonLoc>(EleSizeVal), SizeTy);
// Finally, Assume that the array's extent matches the given size.
OpenPOWER on IntegriCloud