mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 07:39:11 +08:00
[CodeGen] Surround assertion with parentheses.
This should placate GCC's -Wparentheses. llvm-svn: 304499
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user