diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-20 00:03:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-20 00:03:45 +0000 |
commit | cd37bf5483e8915f3a05aafbf2c0edd7d39a9e78 (patch) | |
tree | 951d57377522c42573b16fbe72afa936e59a798c /llvm/lib/CodeGen | |
parent | 0fc2accb587b2748fac55663f077babdae68861f (diff) | |
download | bcm5719-llvm-cd37bf5483e8915f3a05aafbf2c0edd7d39a9e78.tar.gz bcm5719-llvm-cd37bf5483e8915f3a05aafbf2c0edd7d39a9e78.zip |
This needs to be a const variable so the two sides of the ternary
operator agree on type.
llvm-svn: 229938
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index 57f05be35c9..d24a2a23d46 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp @@ -152,7 +152,8 @@ void AsmPrinter::EmitInlineAsm(StringRef Str, const MDNode *LocMDNode, // and not have a MachineFunction to initialize the TargetInstrInfo from and // we only need MCInstrInfo for asm parsing. std::unique_ptr<MCTargetAsmParser> TAP(TM.getTarget().createMCAsmParser( - *STI, *Parser, MII ? *MII : *TM.getTarget().createMCInstrInfo(), + *STI, *Parser, MII ? *MII : *static_cast<const MCInstrInfo *>( + TM.getTarget().createMCInstrInfo()), TM.Options.MCOptions)); if (!TAP) report_fatal_error("Inline asm not supported by this streamer because" |