diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86Operand.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86Operand.h b/llvm/lib/Target/X86/AsmParser/X86Operand.h index 3a76d023e64..593932e6aea 100644 --- a/llvm/lib/Target/X86/AsmParser/X86Operand.h +++ b/llvm/lib/Target/X86/AsmParser/X86Operand.h @@ -104,8 +104,8 @@ struct X86Operand final : public MCParsedAsmOperand { } else if (Val->getKind() == MCExpr::SymbolRef) { if (auto *SRE = dyn_cast<MCSymbolRefExpr>(Val)) { const MCSymbol &Sym = SRE->getSymbol(); - if (auto SymName = Sym.getName().data()) - OS << VName << SymName; + if (const char *SymNameStr = Sym.getName().data()) + OS << VName << SymNameStr; } } }; |

