From 2da9d6d6cfebc6934f8e730b4e645b5c08799aac Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 17 Aug 2012 16:38:04 +0000 Subject: [PATCH] [ms-inline asm] Instantiate the MCStreamer as a NullStream. We're parsing instruction, not emitting them, so a NullStream is fine. llvm-svn: 162105 --- clang/lib/Sema/SemaStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 9240dadb3e18..86884b787339 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -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 Str; + OwningPtr Str(createNullStreamer(Ctx)); OwningPtr Parser(createMCAsmParser(SrcMgr, Ctx, *Str.get(), *MAI)); OwningPtr