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 | 14c4c1ec0eca7f2f91957571288b4d918ed8c394 (patch) | |
tree | f3de94f42dde59dcdeee17dc2da3a55a6ecb062c /lib/CodeGen | |
parent | 5b22efa61446797039dd19fc1e9be83676463f99 (diff) | |
download | external_llvm-14c4c1ec0eca7f2f91957571288b4d918ed8c394.zip external_llvm-14c4c1ec0eca7f2f91957571288b4d918ed8c394.tar.gz external_llvm-14c4c1ec0eca7f2f91957571288b4d918ed8c394.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 04e9721..fb3d101 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<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. |