Idiotic error in last fix.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 14 Nov 2001 17:55:02 +0000 (17:55 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 14 Nov 2001 17:55:02 +0000 (17:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1306 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp

index 7fe3e60f7fcfb613ad91b6d93337af6b835ebf01..c7d4260087b250ab89b19fe52e8bc16af1176e92 100644 (file)
@@ -257,7 +257,7 @@ ChooseRegOrImmed(Value* val,
     {
       intValue = 0;
     }
-  if (CPV->getType()->isSigned())
+  else if (CPV->getType()->isSigned())
     {
       intValue = ((ConstPoolSInt*)CPV)->getValue();
     }
index 7fe3e60f7fcfb613ad91b6d93337af6b835ebf01..c7d4260087b250ab89b19fe52e8bc16af1176e92 100644 (file)
@@ -257,7 +257,7 @@ ChooseRegOrImmed(Value* val,
     {
       intValue = 0;
     }
-  if (CPV->getType()->isSigned())
+  else if (CPV->getType()->isSigned())
     {
       intValue = ((ConstPoolSInt*)CPV)->getValue();
     }