mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Silence wrong warnings from GCC about variables possibly being used
uninitialized: GCC doesn't understand that the variables are only used if !UseImm, in which case they have been initialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70b883b3a7
commit
4c0c5451c7
@ -1360,7 +1360,7 @@ bool ARMFastISel::ARMEmitCmp(const Value *Src1Value, const Value *Src2Value,
|
||||
unsigned SrcReg1 = getRegForValue(Src1Value);
|
||||
if (SrcReg1 == 0) return false;
|
||||
|
||||
unsigned SrcReg2;
|
||||
unsigned SrcReg2 = 0;
|
||||
if (!UseImm) {
|
||||
SrcReg2 = getRegForValue(Src2Value);
|
||||
if (SrcReg2 == 0) return false;
|
||||
@ -1577,7 +1577,7 @@ bool ARMFastISel::SelectSelect(const Instruction *I) {
|
||||
(ARM_AM::getSOImmVal(Imm) != -1);
|
||||
}
|
||||
|
||||
unsigned Op2Reg;
|
||||
unsigned Op2Reg = 0;
|
||||
if (!UseImm) {
|
||||
Op2Reg = getRegForValue(I->getOperand(2));
|
||||
if (Op2Reg == 0) return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user