diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-26 17:18:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 17:18:44 +0000 |
commit | 143b6753936fc8a72ba32a5b113e66ee1a390b6f (patch) | |
tree | d4fb6aaaa7b88fe7d1ac5bcad6f700df0e0d928a | |
parent | 5839bf2b3bd22689d9dd0e9de66c2dce71d130ae (diff) |
Fix a bug in my previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23082 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/IA64/IA64ISelPattern.cpp | 2 | ||||
-rw-r--r-- | 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 32aa94ac58..0d3bc1512f 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<ConstantPoolSDNode>(Address)) { unsigned CPIdx = BB->getParent()->getConstantPool()-> - getConstantPoolIndex(cast<ConstantPoolSDNode>(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 9f602418ab..a874404f7e 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -3374,7 +3374,7 @@ unsigned ISel::SelectExpr(SDOperand N) { assert(cast<VTSDNode>(Node->getOperand(3))->getVT() == MVT::f32 && "Bad EXTLOAD!"); unsigned CPIdx = BB->getParent()->getConstantPool()-> - getConstantPoolIndex(cast<ConstantPoolSDNode>(N)->get()); + getConstantPoolIndex(CP->get()); addConstantPoolReference(BuildMI(BB, X86::FLD32m, 4, Result), CPIdx); return Result; |