diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-02-12 17:23:20 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-02-12 17:23:20 +0000 | 
| commit | 90880e2598ec267d85e7b8cb90f65a9b42dc3c99 (patch) | |
| tree | c7858ddc6a85e01035364f16c7947f616bef2801 | |
| parent | 24ca124fc490a316c40aed762b271f5340241bf2 (diff) | |
| download | bcm5719-llvm-90880e2598ec267d85e7b8cb90f65a9b42dc3c99.tar.gz bcm5719-llvm-90880e2598ec267d85e7b8cb90f65a9b42dc3c99.zip  | |
make fast isel fall back to selectiondags for VLA llvm.declare intrinsics.
llvm-svn: 64379
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 04e97212ddf..fb3d101f122 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -388,11 +388,11 @@ bool FastISel::SelectCall(User *I) {        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.  | 

