diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-08 17:35:36 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-08 17:35:36 +0000 |
commit | 3a32c9c565f970fd319b97a6056a4725cfa4f0f5 (patch) | |
tree | 6d0bf41be74c335104923d627ccfc06b39db7652 /lib | |
parent | 50800fc551ac6b8a95cca662223e7f061bbd169a (diff) |
Add the IsSimple/IsVolatile parameters to the MSAsmStmt constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AST/Stmt.cpp | 5 | ||||
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 69dc170d9e..2894720b76 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -584,10 +584,11 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, } MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, - ArrayRef<Token> asmtoks, + bool issimple, bool isvolatile, ArrayRef<Token> asmtoks, std::string &asmstr, SourceLocation endloc) : Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc), - AsmStr(asmstr), IsSimple(true), IsVolatile(true), NumAsmToks(asmtoks.size()) { + AsmStr(asmstr), IsSimple(issimple), IsVolatile(isvolatile), + NumAsmToks(asmtoks.size()) { AsmToks = new (C) Token[NumAsmToks]; for (unsigned i = 0, e = NumAsmToks; i != e; ++i) diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 5df1a50655..2161aebe38 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -2755,7 +2755,8 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, Diag(AsmLoc, diag::warn_unsupported_msasm); MSAsmStmt *NS = - new (Context) MSAsmStmt(Context, AsmLoc, AsmToks, AsmString, EndLoc); + new (Context) MSAsmStmt(Context, AsmLoc, true, true, AsmToks, AsmString, + EndLoc); return Owned(NS); } |