forked from OSchip/llvm-project
[ms-inline asm] Instantiate the MCStreamer as a NullStream. We're parsing
instruction, not emitting them, so a NullStream is fine. llvm-svn: 162105
This commit is contained in:
parent
433c8a1f44
commit
2da9d6d6cf
|
@ -3010,7 +3010,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
|
|||
// Tell SrcMgr about this buffer, which is what the parser will pick up.
|
||||
SrcMgr.AddNewSourceBuffer(Buffer, llvm::SMLoc());
|
||||
|
||||
OwningPtr<llvm::MCStreamer> Str;
|
||||
OwningPtr<llvm::MCStreamer> Str(createNullStreamer(Ctx));
|
||||
OwningPtr<llvm::MCAsmParser>
|
||||
Parser(createMCAsmParser(SrcMgr, Ctx, *Str.get(), *MAI));
|
||||
OwningPtr<llvm::MCTargetAsmParser>
|
||||
|
|
Loading…
Reference in New Issue