diff options
author | Davide Italiano <davide@freebsd.org> | 2017-06-01 23:55:18 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2017-06-01 23:55:18 +0000 |
commit | 77378e42b3f8a55bcc59fa86317f29943483ed22 (patch) | |
tree | d17c087dffc16121d77db2f10a6f2263a18fc2dd /clang/lib/CodeGen/CGExprScalar.cpp | |
parent | fce1f464ac5b7d7f46fde9282d49b714ff3eb1fe (diff) | |
download | bcm5719-llvm-77378e42b3f8a55bcc59fa86317f29943483ed22.tar.gz bcm5719-llvm-77378e42b3f8a55bcc59fa86317f29943483ed22.zip |
[CodeGen] Surround assertion with parentheses.
This should placate GCC's -Wparentheses.
llvm-svn: 304499
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index d604b4130a2..f9d1fe46874 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -3887,7 +3887,7 @@ Value *CodeGenFunction::EmitCheckedInBoundsGEP(Value *Ptr, /// Return the result of the given binary operation. auto eval = [&](BinaryOperator::Opcode Opcode, llvm::Value *LHS, llvm::Value *RHS) -> llvm::Value * { - assert(Opcode == BO_Add || Opcode == BO_Mul && "Can't eval binop"); + assert((Opcode == BO_Add || Opcode == BO_Mul) && "Can't eval binop"); // If the operands are constants, return a constant result. if (auto *LHSCI = dyn_cast<llvm::ConstantInt>(LHS)) { |