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
This commit is contained in:
Benjamin Kramer
2009-09-10 11:31:39 +00:00
parent b4b1c9fa23
commit b84c5ae3d4
3 changed files with 7 additions and 4 deletions

View File

@ -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))