summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-15 20:32:15 +0000
committerChris Lattner <sabre@nondot.org>2003-01-15 20:32:15 +0000
commit5f738161ae738df552f52fb0e076273e8ca49387 (patch)
tree43650a4039438eee05661905615306eaf7886a29 /llvm/lib
parentc75dc4856e271697f2a25fb26af0846df09f4f0a (diff)
downloadbcm5719-llvm-5f738161ae738df552f52fb0e076273e8ca49387.tar.gz
bcm5719-llvm-5f738161ae738df552f52fb0e076273e8ca49387.zip
Fix bug in previous checkin
llvm-svn: 5310
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
index 8c38a8f436b..4413a25655b 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
+++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
@@ -433,7 +433,8 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
if (mop.getType() == MachineOperand::MO_VirtualRegister)
{
assert(mop.getVRegValue() != NULL);
- if (Constant *opConst = dyn_cast<Constant>(mop.getVRegValue())) {
+ opValue = mop.getVRegValue();
+ if (Constant *opConst = dyn_cast<Constant>(opValue)) {
opType = ChooseRegOrImmed(opConst, opCode, target,
(immedPos == (int)op), machineRegNum,
immedValue);
OpenPOWER on IntegriCloud