[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 13:55:04 PST 2018


v.g.vassilev added inline comments.


================
Comment at: lib/Serialization/ASTReaderDecl.cpp:92
       for (unsigned I = 0, Size = Record.readInt(); I != Size; ++I)
-        IDs.push_back(ReadDeclID());
+        IDs.push_back(LazySpecializationInfo(ReadDeclID(), Record.readInt()));
     }
----------------
rsmith wrote:
> Move these subexpressions to separate statements; the two "read" calls are not sequenced here.
Good catch!


https://reviews.llvm.org/D41416





More information about the cfe-commits mailing list