diff options
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 7fe3e60f7f..c7d4260087 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/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(); } diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp index 7fe3e60f7f..c7d4260087 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/Target/SparcV9/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(); } |