summaryrefslogtreecommitdiffstats
path: root/clang/AST/StmtSerialization.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-02-05 23:03:50 +0000
committerAnders Carlsson <andersca@mac.com>2008-02-05 23:03:50 +0000
commit19fe116fc0b3552b30a13fefeb42d961539ab157 (patch)
tree69d13b9879e8aa393bccab79900cd52afb2a3d35 /clang/AST/StmtSerialization.cpp
parent87fbd66f9f8027e72a9cb9b97595d12626f31a2a (diff)
downloadbcm5719-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.cpp4
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);
OpenPOWER on IntegriCloud