diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-01 21:53:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-01 21:53:45 +0000 |
commit | 43ea78b48de5d61756a4d13d6d672796b6ef44a5 (patch) | |
tree | 6042492970970361d6a07faf526b829a137b52d2 /clang/lib/Serialization/ASTReaderStmt.cpp | |
parent | 48d7798de157759063ddb81525eb6b1a2fcc036b (diff) | |
download | bcm5719-llvm-43ea78b48de5d61756a4d13d6d672796b6ef44a5.tar.gz bcm5719-llvm-43ea78b48de5d61756a4d13d6d672796b6ef44a5.zip |
Don't try keeping a 'LeadingEmptyMacroLoc' in NullStmt. This fails
in the face of buffering C++/ObjC method bodies.
llvm-svn: 138972
Diffstat (limited to 'clang/lib/Serialization/ASTReaderStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReaderStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReaderStmt.cpp b/clang/lib/Serialization/ASTReaderStmt.cpp index cfe46d75b1e..a402ad05a09 100644 --- a/clang/lib/Serialization/ASTReaderStmt.cpp +++ b/clang/lib/Serialization/ASTReaderStmt.cpp @@ -109,7 +109,7 @@ void ASTStmtReader::VisitStmt(Stmt *S) { void ASTStmtReader::VisitNullStmt(NullStmt *S) { VisitStmt(S); S->setSemiLoc(ReadSourceLocation(Record, Idx)); - S->LeadingEmptyMacro = ReadSourceLocation(Record, Idx); + S->HasLeadingEmptyMacro = Record[Idx++]; } void ASTStmtReader::VisitCompoundStmt(CompoundStmt *S) { |