aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-27 22:17:41 +0000
committerChris Lattner <sabre@nondot.org>2009-04-27 22:17:41 +0000
commit6bf690fd464b76d35cdf1ac8e4ed693585b36a4d (patch)
treef8c2e6a1d4e6d6ca9f00eac60db0de8425f6530b /lib/Frontend
parentcc7dea8f32a46dac852178df1557fc97e799e3d1 (diff)
fix test/PCH/method_pool.m
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r--lib/Frontend/PCHReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp
index 7ca0300eed..24e4e2b02f 100644
--- a/lib/Frontend/PCHReader.cpp
+++ b/lib/Frontend/PCHReader.cpp
@@ -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)));