]> granicus.if.org Git - clang/commit
Modules: Fix an assertion in DeclContext::buildLookup.
authorManman Ren <manman.ren@gmail.com>
Tue, 6 Sep 2016 18:16:54 +0000 (18:16 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 6 Sep 2016 18:16:54 +0000 (18:16 +0000)
commit12212b904597756dc22c66d91f8dd7b9b022fa97
tree086580271dce43b7b48c7912671b2fd618b08ade
parentf43724c2b7a47a71ad9309666c606c6a4187a76c
Modules: Fix an assertion in DeclContext::buildLookup.

When calling getMostRecentDecl, we can pull in more definitions from
a module. We call getPrimaryContext afterwards to make sure that
we buildLookup on a primary context.

rdar://27926200

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclBase.cpp
test/Modules/Inputs/lookup-assert/Base.h [new file with mode: 0644]
test/Modules/Inputs/lookup-assert/Derive.h [new file with mode: 0644]
test/Modules/Inputs/lookup-assert/H3.h [new file with mode: 0644]
test/Modules/Inputs/lookup-assert/module.map [new file with mode: 0644]
test/Modules/lookup-assert.m [new file with mode: 0644]