[llvm-commits] [llvm] r85185 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Dan Gohman
gohman at apple.com
Mon Oct 26 17:11:02 PDT 2009
Author: djg
Date: Mon Oct 26 19:11:02 2009
New Revision: 85185
URL: http://llvm.org/viewvc/llvm-project?rev=85185&view=rev
Log:
Add braces to avoid ambiguous else.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=85185&r1=85184&r2=85185&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Mon Oct 26 19:11:02 2009
@@ -11344,7 +11344,7 @@
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 @@
return EraseInstFromFunction(*cast<Instruction>(Op));
}
}
+ }
return 0;
}
More information about the llvm-commits
mailing list