[cfe-commits] r70263 - /cfe/trunk/lib/Frontend/PCHReader.cpp
Chris Lattner
sabre at nondot.org
Mon Apr 27 15:17:41 PDT 2009
Author: lattner
Date: Mon Apr 27 17:17:41 2009
New Revision: 70263
URL: http://llvm.org/viewvc/llvm-project?rev=70263&view=rev
Log:
fix test/PCH/method_pool.m
Modified:
cfe/trunk/lib/Frontend/PCHReader.cpp
Modified: cfe/trunk/lib/Frontend/PCHReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHReader.cpp?rev=70263&r1=70262&r2=70263&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHReader.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHReader.cpp Mon Apr 27 17:17:41 2009
@@ -270,7 +270,7 @@
// Read all of the declarations visible at global scope with this
// name.
Sema *SemaObj = Reader.getSema();
- if (!SemaObj) return II;
+ if (Reader.getContext() == 0) return II;
while (DataLen > 0) {
NamedDecl *D = cast<NamedDecl>(Reader.GetDecl(ReadUnalignedLE32(d)));
More information about the cfe-commits
mailing list