diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-20 16:03:59 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-20 16:03:59 +0000 |
commit | bb5c7eae4c089e2fa08c9f26b363e7a608a3fed9 (patch) | |
tree | bd4f58f6846397a4985916ebca28b1eec662d758 /clang/lib/Serialization/ASTReader.cpp | |
parent | 4bd97102e9445f643aef7c65c3aba8e965da9882 (diff) | |
download | bcm5719-llvm-bb5c7eae4c089e2fa08c9f26b363e7a608a3fed9.tar.gz bcm5719-llvm-bb5c7eae4c089e2fa08c9f26b363e7a608a3fed9.zip |
serialization::TypeID is used with or without qualifiers, both as index and as index + qualifiers.
Disambiguate and provide some type safety by using a new class TypeIdx for the "TypeID as index" semantics.
llvm-svn: 111630
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 238ce3f5ed8..040277074c2 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -2826,7 +2826,7 @@ QualType ASTReader::GetType(TypeID ID) { TypesLoaded[Index] = ReadTypeRecord(Index); TypesLoaded[Index]->setFromAST(); if (DeserializationListener) - DeserializationListener->TypeRead(ID >> Qualifiers::FastWidth, + DeserializationListener->TypeRead(TypeIdx::fromTypeID(ID), TypesLoaded[Index]); } |