From a7020aee0004dd9a746e1f9404b10a7bcfdb35b5 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 10 Aug 2012 19:13:14 +0000 Subject: [ms-inline asm] Add clobbers to AST representation. llvm-svn: 161686 --- clang/lib/Sema/SemaStmt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/SemaStmt.cpp') diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 56ac7c5d46d..716f4df5267 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -2883,6 +2883,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation EndLoc) { // MS-style inline assembly is not fully supported, so emit a warning. Diag(AsmLoc, diag::warn_unsupported_msasm); + SmallVector Clobbers; // Empty asm statements don't need to instantiate the AsmParser, etc. if (AsmToks.empty()) { @@ -2890,7 +2891,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, MSAsmStmt *NS = new (Context) MSAsmStmt(Context, AsmLoc, /* IsSimple */ true, /* IsVolatile */ true, AsmToks, LineEnds, - AsmString, EndLoc); + AsmString, Clobbers, EndLoc); return Owned(NS); } @@ -2937,7 +2938,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, MSAsmStmt *NS = new (Context) MSAsmStmt(Context, AsmLoc, IsSimple, /* IsVolatile */ true, - AsmToks, LineEnds, AsmString, EndLoc); + AsmToks, LineEnds, AsmString, Clobbers, EndLoc); return Owned(NS); } -- cgit v1.2.3