OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699beba
)
Add braces to avoid ambiguous else.
author
Dan Gohman
<gohman@apple.com>
Tue, 27 Oct 2009 00:11:02 +0000
(
00:11
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 27 Oct 2009 00:11:02 +0000
(
00:11
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85185
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index
d1b12b2
..
4af6c1c
100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-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;
}