aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-06 02:26:02 +0000
committerDale Johannesen <dalej@apple.com>2010-02-06 02:26:02 +0000
commitdc9185657593b5c1db86cb95a04a68fc09194993 (patch)
tree8e792e011f1c62ff3111bd00a1cc64bd05f5b58a /lib/CodeGen/SelectionDAG/FastISel.cpp
parentc8d7b85ba133f6e590d1c3ac78d47c88914aedea (diff)
After Victor's latest commits I am seeing null
addresses in dbg.declare; ignore this for the moment to prevent things from breaking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index b7dbd03fc3..6ad1f914b0 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -332,6 +332,8 @@ bool FastISel::SelectCall(User *I) {
return true;
Value *Address = DI->getAddress();
+ if (!Address)
+ return true;
AllocaInst *AI = dyn_cast<AllocaInst>(Address);
// Don't handle byval struct arguments or VLAs, for example.
if (!AI) break;