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 | fd414a27fdc85e45af00ed4329cb0e6508470dea (patch) | |
tree | 9044c61aed1a64884d2351542c51080b4b546f64 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 0437cdd6dc204a77854a61bf19f33cd272224d10 (diff) |
Don't use the load/store instruction as the source pointer, use the pointer
being stored/loaded through!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c9ce796220..26aa570e93 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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); |