[llvm-commits] [llvm] r64379 - /llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Chris Lattner sabre at nondot.org
Thu Feb 12 09:23:20 PST 2009


Author: lattner
Date: Thu Feb 12 11:23:20 2009
New Revision: 64379

URL: http://llvm.org/viewvc/llvm-project?rev=64379&view=rev
Log:
make fast isel fall back to selectiondags for VLA llvm.declare intrinsics.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=64379&r1=64378&r2=64379&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Thu Feb 12 11:23:20 2009
@@ -388,11 +388,11 @@
       if (BitCastInst *BCI = dyn_cast<BitCastInst>(Address))
         Address = BCI->getOperand(0);
       AllocaInst *AI = dyn_cast<AllocaInst>(Address);
-      // Don't handle byval struct arguments, for example.
+      // Don't handle byval struct arguments or VLAs, for example.
       if (!AI) break;
       DenseMap<const AllocaInst*, int>::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.





More information about the llvm-commits mailing list