mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
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
This commit is contained in:
parent
8bf75ed41c
commit
af0d459e36
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user