mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
make fast isel fall back to selectiondags for VLA llvm.declare intrinsics.
llvm-svn: 64379
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user