summaryrefslogtreecommitdiffstats
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
commitdb2eb47835caec3f521dc1495d551417c3b2d7d9 (patch)
tree35173a145daac2120b180f05f98f74ecee9c17f5
parentce410662ce75f2b7dc6feb38300720b3d065e875 (diff)
downloadbcm5719-llvm-db2eb47835caec3f521dc1495d551417c3b2d7d9.tar.gz
bcm5719-llvm-db2eb47835caec3f521dc1495d551417c3b2d7d9.zip
After Victor's latest commits I am seeing null
addresses in dbg.declare; ignore this for the moment to prevent things from breaking. llvm-svn: 95471
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index b7dbd03fc3a..6ad1f914b01 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud