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 | af0d459e36cd96005898cf0800d151845311f471 (patch) | |
tree | 174468b2eb0d517a10d4c4208006a06d5dce826d /lib/Target/Hexagon | |
parent | 8bf75ed41c95e50b62a4f8b03552d51ad6e86c7a (diff) | |
download | external_llvm-af0d459e36cd96005898cf0800d151845311f471.zip external_llvm-af0d459e36cd96005898cf0800d151845311f471.tar.gz external_llvm-af0d459e36cd96005898cf0800d151845311f471.tar.bz2 |
Silence a gcc-4.6 warning: GCC fails to understand that secondReg and cmpOp2 are
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
Diffstat (limited to 'lib/Target/Hexagon')
-rw-r--r-- | lib/Target/Hexagon/HexagonNewValueJump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Hexagon/HexagonNewValueJump.cpp b/lib/Target/Hexagon/HexagonNewValueJump.cpp index c93b56d..7ece408 100644 --- 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) { |