| Index: src/IceTargetLoweringX8664.cpp
|
| diff --git a/src/IceTargetLoweringX8664.cpp b/src/IceTargetLoweringX8664.cpp
|
| index ed586a375da8c9b76c9a72d93cf23d4e85205703..1fcf0b9254c3c7ae67db51349fc44289bb7313ad 100644
|
| --- a/src/IceTargetLoweringX8664.cpp
|
| +++ b/src/IceTargetLoweringX8664.cpp
|
| @@ -240,9 +240,9 @@ void TargetDataX8664::lowerJumpTables() {
|
| switch (Ctx->getFlags().getOutFileType()) {
|
| case FT_Elf: {
|
| ELFObjectWriter *Writer = Ctx->getObjectWriter();
|
| - for (const JumpTableData &JumpTable : *Ctx->getJumpTables())
|
| + for (const JumpTableData &JT : Ctx->getJumpTables())
|
| // TODO(jpp): not 386.
|
| - Writer->writeJumpTable(JumpTable, llvm::ELF::R_386_32);
|
| + Writer->writeJumpTable(JT, llvm::ELF::R_386_32);
|
| } break;
|
| case FT_Asm:
|
| // Already emitted from Cfg
|
| @@ -251,7 +251,7 @@ void TargetDataX8664::lowerJumpTables() {
|
| if (!BuildDefs::dump())
|
| return;
|
| Ostream &Str = Ctx->getStrEmit();
|
| - for (const JumpTableData &JT : *Ctx->getJumpTables()) {
|
| + for (const JumpTableData &JT : Ctx->getJumpTables()) {
|
| Str << "\t.section\t.rodata." << JT.getFunctionName()
|
| << "$jumptable,\"a\",@progbits\n";
|
| Str << "\t.align\t" << typeWidthInBytes(getPointerType()) << "\n";
|
|
|