1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fix a bug in my previous checkin

llvm-svn: 23082
This commit is contained in:
Chris Lattner 2005-08-26 17:18:44 +00:00
parent a31708e6b3
commit 439ef36320
2 changed files with 2 additions and 2 deletions

View File

@ -1976,7 +1976,7 @@ pC = pA OR pB
} }
} else if(ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Address)) { } else if(ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Address)) {
unsigned CPIdx = BB->getParent()->getConstantPool()-> unsigned CPIdx = BB->getParent()->getConstantPool()->
getConstantPoolIndex(cast<ConstantPoolSDNode>(N)->get()); getConstantPoolIndex(CP->get());
Select(Chain); Select(Chain);
IA64Lowering.restoreGP(BB); IA64Lowering.restoreGP(BB);
unsigned dummy = MakeReg(MVT::i64); unsigned dummy = MakeReg(MVT::i64);

View File

@ -3374,7 +3374,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
assert(cast<VTSDNode>(Node->getOperand(3))->getVT() == MVT::f32 && assert(cast<VTSDNode>(Node->getOperand(3))->getVT() == MVT::f32 &&
"Bad EXTLOAD!"); "Bad EXTLOAD!");
unsigned CPIdx = BB->getParent()->getConstantPool()-> unsigned CPIdx = BB->getParent()->getConstantPool()->
getConstantPoolIndex(cast<ConstantPoolSDNode>(N)->get()); getConstantPoolIndex(CP->get());
addConstantPoolReference(BuildMI(BB, X86::FLD32m, 4, Result), CPIdx); addConstantPoolReference(BuildMI(BB, X86::FLD32m, 4, Result), CPIdx);
return Result; return Result;