diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-06 02:26:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-06 02:26:02 +0000 |
commit | db2eb47835caec3f521dc1495d551417c3b2d7d9 (patch) | |
tree | 35173a145daac2120b180f05f98f74ecee9c17f5 | |
parent | ce410662ce75f2b7dc6feb38300720b3d065e875 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |