From 14c4c1ec0eca7f2f91957571288b4d918ed8c394 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Feb 2009 17:23:20 +0000 Subject: [PATCH] make fast isel fall back to selectiondags for VLA llvm.declare intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64379 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/FastISel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 04e97212ddf..fb3d101f122 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -388,11 +388,11 @@ bool FastISel::SelectCall(User *I) { if (BitCastInst *BCI = dyn_cast(Address)) Address = BCI->getOperand(0); AllocaInst *AI = dyn_cast(Address); - // Don't handle byval struct arguments, for example. + // Don't handle byval struct arguments or VLAs, for example. if (!AI) break; DenseMap::iterator SI = StaticAllocaMap.find(AI); - assert(SI != StaticAllocaMap.end() && "Invalid dbg.declare!"); + if (SI == StaticAllocaMap.end()) break; // VLAs. int FI = SI->second; // Determine the debug globalvariable.