mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix a bug that Brian brought to my attention. This corrects:
Assembler/2004-10-22-BCWriterUndefBug.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17177 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7450d81342
commit
5fd2ab3518
@ -151,6 +151,7 @@ void SlotCalculator::processModule() {
|
||||
unsigned FirstNonStringID = 0;
|
||||
for (unsigned i = 0, e = Plane.size(); i != e; ++i)
|
||||
if (isa<ConstantAggregateZero>(Plane[i]) ||
|
||||
isa<UndefValue>(Plane[i]) ||
|
||||
cast<ConstantArray>(Plane[i])->isString()) {
|
||||
// Check to see if we have to shuffle this string around. If not,
|
||||
// don't do anything.
|
||||
|
Loading…
Reference in New Issue
Block a user