]> granicus.if.org Git - clang/commit
Don't synthesize an ImportDecl for a module named in -fmodule-implementation-of
authorBen Langmuir <blangmuir@apple.com>
Fri, 5 Feb 2016 01:10:05 +0000 (01:10 +0000)
committerBen Langmuir <blangmuir@apple.com>
Fri, 5 Feb 2016 01:10:05 +0000 (01:10 +0000)
commitef787f73ca9173268ee1a84abaf6e70e1c44b40a
treeeeda482951401b378e2ac5b5d2e577d7f983147f
parentaaf9f44a0d006d13bcbc91dd9718d269cfa3682c
Don't synthesize an ImportDecl for a module named in -fmodule-implementation-of

When building a PCH with modules enabled this import would assert in the
ASTWriter and (if assertions were disabled) sometimes crash the compiler
that loaded the resulting PCH when trying to lookup the submodule ID.

rdar://problem/24137448

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259859 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Modules/Inputs/category_right.h
test/Modules/objc-categories.m