From 9e29f780296feb1cddffbad640d2f813efc11b94 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 14 Nov 2001 17:55:02 +0000 Subject: [PATCH] Idiotic error in last fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1306 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 2 +- 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 7fe3e60f7fc..c7d4260087b 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 7fe3e60f7fc..c7d4260087b 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(); } -- 2.34.1