aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/MallocHelper.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-09-10 11:31:39 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-09-10 11:31:39 +0000
commitb84c5ae3d4d34d2e4cafbd7c1281de771b813a09 (patch)
tree18345fe1d0babbaa6e0c1b767ee5a7189cfb2694 /lib/Analysis/MallocHelper.cpp
parentb4b1c9fa23935a4750002f4dfcecd154ce2053e5 (diff)
Add some braces to make newer GCCs happy and update CMakeLists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MallocHelper.cpp')
-rw-r--r--lib/Analysis/MallocHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/MallocHelper.cpp b/lib/Analysis/MallocHelper.cpp
index 5001110c6a..567268c679 100644
--- a/lib/Analysis/MallocHelper.cpp
+++ b/lib/Analysis/MallocHelper.cpp
@@ -188,7 +188,7 @@ Value* llvm::getMallocArraySize(CallInst* CI) {
Constant* CO = dyn_cast<Constant>(MallocArg);
BinaryOperator* BO = dyn_cast<BinaryOperator>(MallocArg);
- assert(isConstantOne(ElementSize) || CO || BO &&
+ assert((isConstantOne(ElementSize) || CO || BO) &&
"getMallocArraySize and malformed malloc IR");
if (isConstantOne(ElementSize))