Keep track of whether the asm is volatile or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44297 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp
index 5a52171..5184ebc 100644
--- a/Parse/ParseStmt.cpp
+++ b/Parse/ParseStmt.cpp
@@ -934,7 +934,7 @@
Diag(Loc, diag::w_asm_qualifier_ignored, "restrict");
// Remember if this was a volatile asm.
- //bool isVolatile = DS.TypeQualifiers & DeclSpec::TQ_volatile;
+ bool isVolatile = DS.getTypeQualifiers() & DeclSpec::TQ_volatile;
if (Tok.isNot(tok::l_paren)) {
Diag(Tok, diag::err_expected_lparen_after, "asm");
@@ -986,7 +986,7 @@
SourceLocation RParenLoc = MatchRHSPunctuation(tok::r_paren, Loc);
- return Actions.ActOnAsmStmt(AsmLoc, NumOutputs, NumInputs,
+ return Actions.ActOnAsmStmt(AsmLoc, isVolatile, NumOutputs, NumInputs,
&Names[0], &Constraints[0], &Exprs[0],
AsmString.Val,
Clobbers.size(), &Clobbers[0],