projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7569af7
)
Silence compiler warning about use of uninitialized variables (in reality these
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Feb 2009 06:37:39 +0000
(06:37 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Feb 2009 06:37:39 +0000
(06:37 +0000)
are always set by reference on the path that uses them.) No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65621
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 61ca5de5b86ff2209239193729eb6a9495f9dc27..8e91b36d5d1aef8c10d53e7f32e5a274014cb262 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-5822,7
+5822,7
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
// See if we are doing a comparison with a constant.
if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
- Value *A
, *B
;
+ Value *A
= 0, *B = 0
;
// (icmp ne/eq (sub A B) 0) -> (icmp ne/eq A, B)
if (I.isEquality() && CI->isNullValue() &&