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:
8bf75ed
)
Silence a gcc-4.6 warning: GCC fails to understand that secondReg and cmpOp2 are
author
Duncan Sands
<baldrick@free.fr>
Sat, 9 Jun 2012 10:04:03 +0000
(10:04 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Sat, 9 Jun 2012 10:04:03 +0000
(10:04 +0000)
correlated, and thinks that cmpOp2 may be used uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158263
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Hexagon/HexagonNewValueJump.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Hexagon/HexagonNewValueJump.cpp
b/lib/Target/Hexagon/HexagonNewValueJump.cpp
index c93b56debe51577f0fb813ecc6f7f87bbc8e571d..7ece4085ecbdbed327473c44e897d84dd1a74a21 100644
(file)
--- a/
lib/Target/Hexagon/HexagonNewValueJump.cpp
+++ b/
lib/Target/Hexagon/HexagonNewValueJump.cpp
@@
-222,7
+222,7
@@
static bool canCompareBeNewValueJump(const HexagonInstrInfo *QII,
return false;
}
- unsigned cmpReg1, cmpOp2
;
+ unsigned cmpReg1, cmpOp2
= 0; // cmpOp2 assignment silences compiler warning.
cmpReg1 = MI->getOperand(1).getReg();
if (secondReg) {