diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-08 21:53:27 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-08 21:53:27 +0000 |
commit | 8ac38f2a616d303423e66023d2d2a6ff96c5040a (patch) | |
tree | f7d7e9c9d1a99ae976a63a33322fcca2b881566c /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | c2e93b255e120f066ad8c16b0593b05f7e9f3d19 (diff) |
Apply the 95471 fix to SelectionDAGBuilder as well;
we can get in here if FastISel gives up in a block.
(Actually the two copies of this need to be unified. Later.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 93ae043dbc..8b380c68c2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3760,6 +3760,8 @@ SelectionDAGBuilder::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { MDNode *Variable = DI.getVariable(); Value *Address = DI.getAddress(); + if (!Address) + return 0; if (BitCastInst *BCI = dyn_cast<BitCastInst>(Address)) Address = BCI->getOperand(0); AllocaInst *AI = dyn_cast<AllocaInst>(Address); |