From 83f31d3511bf67d817cd677af23cf9623b3fee39 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Sat, 6 Feb 2010 02:26:02 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/FastISel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index b7dbd03fc3a..6ad1f914b01 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(Address); // Don't handle byval struct arguments or VLAs, for example. if (!AI) break;