DebugInfo: Fix line table for comparisons harder/better for the sake of C (& the GDB buildbot)
llvm-svn: 227663
This commit is contained in:
@@ -1190,7 +1190,11 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond,
|
||||
CurrentCount - TrueCount);
|
||||
|
||||
// Emit the code with the fully general case.
|
||||
llvm::Value *CondV = EvaluateExprAsBool(Cond);
|
||||
llvm::Value *CondV;
|
||||
{
|
||||
ApplyDebugLocation DL(*this, Cond);
|
||||
CondV = EvaluateExprAsBool(Cond);
|
||||
}
|
||||
Builder.CreateCondBr(CondV, TrueBlock, FalseBlock, Weights);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user