mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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:
parent
5b22efa614
commit
14c4c1ec0e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user