diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 7fe3e60f7fcf..c7d4260087b2 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -257,7 +257,7 @@ ChooseRegOrImmed(Value* val, { intValue = 0; } - if (CPV->getType()->isSigned()) + else if (CPV->getType()->isSigned()) { intValue = ((ConstPoolSInt*)CPV)->getValue(); }