fix test/PCH/method_pool.m

llvm-svn: 70263
This commit is contained in:
Chris Lattner 2009-04-27 22:17:41 +00:00
parent 3e6e188ee3
commit 1d72888cfc
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ public:
// 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)));