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 | d0dc6f42994103e2eaf48b5df8e9ca4dfd82b50a (patch) | |
| tree | 4cd7b48c1da7b51d80fdc536903479706d4f0164 /llvm/lib | |
| parent | c30405e0ee1bdc26fbc8cbf63595f1bef1a2e347 (diff) | |
| download | bcm5719-llvm-d0dc6f42994103e2eaf48b5df8e9ca4dfd82b50a.tar.gz bcm5719-llvm-d0dc6f42994103e2eaf48b5df8e9ca4dfd82b50a.zip | |
Fix a bug in my previous checkin
llvm-svn: 23082
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/IA64/IA64ISelPattern.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelPattern.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelPattern.cpp b/llvm/lib/Target/IA64/IA64ISelPattern.cpp index 32aa94ac58b..0d3bc1512fc 100644 --- a/llvm/lib/Target/IA64/IA64ISelPattern.cpp +++ b/llvm/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/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp index 9f602418aba..a874404f7eb 100644 --- a/llvm/lib/Target/X86/X86ISelPattern.cpp +++ b/llvm/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; |

