mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
fix a major oversight that is breaking some llvm-test tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
babd5980d8
commit
41b9920a13
@ -900,6 +900,7 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
|
|||||||
AbbrevToUse = CString7Abbrev;
|
AbbrevToUse = CString7Abbrev;
|
||||||
} else if (const ConstantDataSequential *CDS =
|
} else if (const ConstantDataSequential *CDS =
|
||||||
dyn_cast<ConstantDataSequential>(C)) {
|
dyn_cast<ConstantDataSequential>(C)) {
|
||||||
|
Code = bitc::CST_CODE_DATA;
|
||||||
Type *EltTy = CDS->getType()->getElementType();
|
Type *EltTy = CDS->getType()->getElementType();
|
||||||
if (isa<IntegerType>(EltTy)) {
|
if (isa<IntegerType>(EltTy)) {
|
||||||
for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i)
|
for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user