From 439ef36320231308e2b5ecdb37487f6846654938 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 26 Aug 2005 17:18:44 +0000 Subject: [PATCH] Fix a bug in my previous checkin llvm-svn: 23082 --- lib/Target/IA64/IA64ISelPattern.cpp | 2 +- lib/Target/X86/X86ISelPattern.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/IA64/IA64ISelPattern.cpp b/lib/Target/IA64/IA64ISelPattern.cpp index 32aa94ac58b..0d3bc1512fc 100644 --- a/lib/Target/IA64/IA64ISelPattern.cpp +++ b/lib/Target/IA64/IA64ISelPattern.cpp @@ -1976,7 +1976,7 @@ pC = pA OR pB } } else if(ConstantPoolSDNode *CP = dyn_cast(Address)) { unsigned CPIdx = BB->getParent()->getConstantPool()-> - getConstantPoolIndex(cast(N)->get()); + getConstantPoolIndex(CP->get()); Select(Chain); IA64Lowering.restoreGP(BB); unsigned dummy = MakeReg(MVT::i64); diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 9f602418aba..a874404f7eb 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -3374,7 +3374,7 @@ unsigned ISel::SelectExpr(SDOperand N) { assert(cast(Node->getOperand(3))->getVT() == MVT::f32 && "Bad EXTLOAD!"); unsigned CPIdx = BB->getParent()->getConstantPool()-> - getConstantPoolIndex(cast(N)->get()); + getConstantPoolIndex(CP->get()); addConstantPoolReference(BuildMI(BB, X86::FLD32m, 4, Result), CPIdx); return Result;