[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:
Chad Rosier 2012-08-17 16:38:04 +00:00
parent 433c8a1f44
commit 2da9d6d6cf
1 changed files with 1 additions and 1 deletions

View File

@ -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>