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 | 120cfe23a779a5a36d68e02d695f0c2ea9981454 (patch) | |
| tree | a5168ef90bbbb5976d401397078eaeec6323905c | |
| parent | 340aafaac6c2291ece78d1c31a00ddfccf71ddd3 (diff) | |
| download | bcm5719-llvm-120cfe23a779a5a36d68e02d695f0c2ea9981454.tar.gz bcm5719-llvm-120cfe23a779a5a36d68e02d695f0c2ea9981454.zip  | |
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.)
llvm-svn: 95579
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 93ae043dbc1..8b380c68c27 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/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);  | 

