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
This commit is contained in:
Chris Lattner 2009-02-12 17:23:20 +00:00
parent 5b22efa614
commit 14c4c1ec0e

View File

@ -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.