diff options
| author | Anders Carlsson <andersca@mac.com> | 2008-02-05 23:03:50 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2008-02-05 23:03:50 +0000 |
| commit | 19fe116fc0b3552b30a13fefeb42d961539ab157 (patch) | |
| tree | 69d13b9879e8aa393bccab79900cd52afb2a3d35 /clang/AST/StmtSerialization.cpp | |
| parent | 87fbd66f9f8027e72a9cb9b97595d12626f31a2a (diff) | |
| download | bcm5719-llvm-19fe116fc0b3552b30a13fefeb42d961539ab157.tar.gz bcm5719-llvm-19fe116fc0b3552b30a13fefeb42d961539ab157.zip | |
Handle simple asm statements correctly.
llvm-svn: 46777
Diffstat (limited to 'clang/AST/StmtSerialization.cpp')
| -rw-r--r-- | clang/AST/StmtSerialization.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/AST/StmtSerialization.cpp b/clang/AST/StmtSerialization.cpp index 9a03a5320f9..f075e1c12d1 100644 --- a/clang/AST/StmtSerialization.cpp +++ b/clang/AST/StmtSerialization.cpp @@ -229,6 +229,7 @@ void AsmStmt::EmitImpl(Serializer& S) const { S.Emit(RParenLoc); S.EmitBool(IsVolatile); + S.EmitBool(IsSimple); S.EmitInt(NumOutputs); S.EmitInt(NumInputs); @@ -254,7 +255,8 @@ AsmStmt* AsmStmt::CreateImpl(Deserializer& D) { SourceLocation PLoc = SourceLocation::ReadVal(D); bool IsVolatile = D.ReadBool(); - AsmStmt *Stmt = new AsmStmt(ALoc, IsVolatile, 0, 0, 0, 0, 0, + bool IsSimple = D.ReadBool(); + AsmStmt *Stmt = new AsmStmt(ALoc, IsSimple, IsVolatile, 0, 0, 0, 0, 0, AsmStr, 0, 0, PLoc); |

