diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-09 04:28:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-09 04:28:51 +0000 |
commit | 57d294f2acc30f843df0c6e07146e0391102f987 (patch) | |
tree | 0cee47b21ec49d146719e7a7b0eb119a7cb994b0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | c14f354895fb764c6861aeb814764d7a6cd49e6e (diff) | |
download | bcm5719-llvm-57d294f2acc30f843df0c6e07146e0391102f987.tar.gz bcm5719-llvm-57d294f2acc30f843df0c6e07146e0391102f987.zip |
Don't use the load/store instruction as the source pointer, use the pointer
being stored/loaded through!
llvm-svn: 21806
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c9ce7962200..26aa570e937 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1329,6 +1329,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, } SDOperand SelectionDAG::getSrcValue(const Value *V, int Offset) { + assert((!V || isa<PointerType>(V->getType())) && + "SrcValue is not a pointer?"); SDNode *&N = ValueNodes[std::make_pair(V, Offset)]; if (N) return SDOperand(N, 0); |