aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorGabor Marton <gabor.marton@ericsson.com>2020-12-09 21:40:53 +0100
committerGabor Marton <gabor.marton@ericsson.com>2020-12-14 18:27:05 +0100
commit68f53960e17d93c3a2727164dac4e54140bd98ba (patch)
tree9cdea67b51c4a3d0f266dd25021b049c34240157 /clang/lib/Lex/ModuleMap.cpp
parent59560e85897afc50090b6c3d920bacfd28b49d06 (diff)
downloadllvm-68f53960e17d93c3a2727164dac4e54140bd98ba.zip
llvm-68f53960e17d93c3a2727164dac4e54140bd98ba.tar.gz
llvm-68f53960e17d93c3a2727164dac4e54140bd98ba.tar.bz2
[ASTImporter] Fix import of a typedef that has an attribute
The import of a typedefs with an attribute uses clang::Decl::setAttrs(). But that needs the ASTContext which we can get only from the TranslationUnitDecl. But we can get the TUDecl only thourgh the DeclContext, which is not set by the time of the setAttrs call. Fix: import the attributes only after the DC is surely imported. Btw, having the attribute import initiated from GetImportedOrCreateDecl was fundamentally flawed. Now that is implicitly fixed. Differential Revision: https://reviews.llvm.org/D92962
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions