]> granicus.if.org Git - clang/commit
Prevent lookup of subframework modules by name without parent framework
authorBen Langmuir <blangmuir@apple.com>
Thu, 20 Mar 2014 18:27:26 +0000 (18:27 +0000)
committerBen Langmuir <blangmuir@apple.com>
Thu, 20 Mar 2014 18:27:26 +0000 (18:27 +0000)
commit8ce754cfcf5c56f67d8b4901770779b04ccada91
tree54fae12c56165dc9b5aa69cb6e2496258f3c0fda
parente896106ae063b3c12432095624e543ed8eadee0b
Prevent lookup of subframework modules by name without parent framework

We were 'allowing' the following import
@import Sub;

where Sub is a subframework of Foo and we had a -F path inside
Foo.framework/Frameworks and no module map file for Sub. This would
later hit assertion failures in debug builds.

Now we should correctly diagnose this as a module not found error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Modules/subframework-from-intermediate-path.m [new file with mode: 0644]