diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-06-09 10:04:03 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-06-09 10:04:03 +0000 |
| commit | 556eab8878a2c2cf173b9493073f362f4e3978ec (patch) | |
| tree | cc4a2a30c5805ccb788895b5720c7d47861da291 /llvm/lib/Target/Hexagon | |
| parent | bb62f555f3c5bf8a3590a5c69b5f997cdc286b95 (diff) | |
| download | bcm5719-llvm-556eab8878a2c2cf173b9493073f362f4e3978ec.tar.gz bcm5719-llvm-556eab8878a2c2cf173b9493073f362f4e3978ec.zip | |
Silence a gcc-4.6 warning: GCC fails to understand that secondReg and cmpOp2 are
correlated, and thinks that cmpOp2 may be used uninitialized.
llvm-svn: 158263
Diffstat (limited to 'llvm/lib/Target/Hexagon')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp b/llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp index c93b56debe5..7ece4085ecb 100644 --- a/llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp +++ b/llvm/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) { |

