Add braces to avoid ambiguous else.

llvm-svn: 85185
This commit is contained in:
Dan Gohman 2009-10-27 00:11:02 +00:00
parent b02bdb4552
commit f808106bbe
1 changed files with 2 additions and 1 deletions

View File

@ -11344,7 +11344,7 @@ Instruction *InstCombiner::visitFree(Instruction &FI) {
return EraseInstFromFunction(FI);
// If we have a malloc call whose only use is a free call, delete both.
if (isMalloc(Op))
if (isMalloc(Op)) {
if (CallInst* CI = extractMallocCallFromBitCast(Op)) {
if (Op->hasOneUse() && CI->hasOneUse()) {
EraseInstFromFunction(FI);
@ -11358,6 +11358,7 @@ Instruction *InstCombiner::visitFree(Instruction &FI) {
return EraseInstFromFunction(*cast<Instruction>(Op));
}
}
}
return 0;
}