mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
Fix the previous bug the correct way. This fixes ptrdist/bc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -151,8 +151,8 @@ void SlotCalculator::processModule() {
|
|||||||
unsigned FirstNonStringID = 0;
|
unsigned FirstNonStringID = 0;
|
||||||
for (unsigned i = 0, e = Plane.size(); i != e; ++i)
|
for (unsigned i = 0, e = Plane.size(); i != e; ++i)
|
||||||
if (isa<ConstantAggregateZero>(Plane[i]) ||
|
if (isa<ConstantAggregateZero>(Plane[i]) ||
|
||||||
isa<UndefValue>(Plane[i]) ||
|
(isa<ConstantArray>(Plane[i]) &&
|
||||||
cast<ConstantArray>(Plane[i])->isString()) {
|
cast<ConstantArray>(Plane[i])->isString())) {
|
||||||
// Check to see if we have to shuffle this string around. If not,
|
// Check to see if we have to shuffle this string around. If not,
|
||||||
// don't do anything.
|
// don't do anything.
|
||||||
if (i != FirstNonStringID) {
|
if (i != FirstNonStringID) {
|
||||||
|
Reference in New Issue
Block a user