forked from OSchip/llvm-project
Fix warning about || and && without explicit grouping.
This looks like it flagged an actual bug. Devang, please review. I added the parentheses that change behavior, but make the behavior more closely match commit log's intent. llvm-svn: 132165
This commit is contained in:
parent
bf22998f21
commit
07f5b65e63
|
@ -555,7 +555,7 @@ bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) {
|
|||
if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(CI))
|
||||
if (Instruction *VI = dyn_cast_or_null<Instruction>(DVI->getValue()))
|
||||
if (!VI->isTerminator() &&
|
||||
DVI->getParent() != VI->getParent() || DT->dominates(DVI, VI)) {
|
||||
(DVI->getParent() != VI->getParent() || DT->dominates(DVI, VI))) {
|
||||
DEBUG(dbgs() << "Moving Debug Value before :\n" << *DVI << ' ' << *VI);
|
||||
DVI->removeFromParent();
|
||||
if (isa<PHINode>(VI))
|
||||
|
|
Loading…
Reference in New Issue