aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-08 17:35:36 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-08 17:35:36 +0000
commit3a32c9c565f970fd319b97a6056a4725cfa4f0f5 (patch)
tree6d0bf41be74c335104923d627ccfc06b39db7652
parent50800fc551ac6b8a95cca662223e7f061bbd169a (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
-rw-r--r--include/clang/AST/Stmt.h4
-rw-r--r--lib/AST/Stmt.cpp5
-rw-r--r--lib/Sema/SemaStmt.cpp3
3 files changed, 7 insertions, 5 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h
index 8dbcf5dd5e..1b5d45317d 100644
--- a/include/clang/AST/Stmt.h
+++ b/include/clang/AST/Stmt.h
@@ -1632,8 +1632,8 @@ class MSAsmStmt : public Stmt {
Stmt **Exprs;
public:
- MSAsmStmt(ASTContext &C, SourceLocation asmloc,
- ArrayRef<Token> asmtoks, std::string &asmstr,
+ MSAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple,
+ bool isvolatile, ArrayRef<Token> asmtoks, std::string &asmstr,
SourceLocation endloc);
SourceLocation getAsmLoc() const { return AsmLoc; }
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);
}