diff options
author | John McCall <rjmccall@apple.com> | 2010-01-13 20:03:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-13 20:03:27 +0000 |
commit | e8595036c4111a58c60c1b33402f45026ed49976 (patch) | |
tree | bbb4efb55aae5befc22d957aa820b47aa8c92de1 /clang/lib/Frontend/PCHReader.cpp | |
parent | e14e372b67e82c5ba244630bd96bba949c40d3e5 (diff) | |
download | bcm5719-llvm-e8595036c4111a58c60c1b33402f45026ed49976.tar.gz bcm5719-llvm-e8595036c4111a58c60c1b33402f45026ed49976.zip |
Add type source information for both kinds of typeof types.
Patch by Enea Zaffanella.
llvm-svn: 93344
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 4c6e5f44a0e..07d5a78beae 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -2111,10 +2111,15 @@ void TypeLocReader::VisitTypedefTypeLoc(TypedefTypeLoc TL) { TL.setNameLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); } void TypeLocReader::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) { - TL.setNameLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setTypeofLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setLParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setRParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); } void TypeLocReader::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) { - TL.setNameLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setTypeofLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setLParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setRParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(Record, Idx)); } void TypeLocReader::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) { TL.setNameLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); |