aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-01-04 23:42:29 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-01-04 23:42:29 +0000
commit33bddbd64ba4cd6970c6287419d902c2bad0aa21 (patch)
tree1889abfedfb6908b66e0bb2e4c3018045dcd0c3a /clang/lib/Lex/ModuleMap.cpp
parent45925d77d657d27620907a5911bfc3935def2403 (diff)
downloadllvm-33bddbd64ba4cd6970c6287419d902c2bad0aa21.zip
llvm-33bddbd64ba4cd6970c6287419d902c2bad0aa21.tar.gz
llvm-33bddbd64ba4cd6970c6287419d902c2bad0aa21.tar.bz2
Make attribute instantiation instantiate all attributes, not just the first of
each kind. Attribute instantiation would previously default to instantiating each kind of attribute only once. This was overridden by a flag whose intended purpose was to permit attributes from a prior declaration to be inherited onto a new declaration even if that new declaration had its own copy of the attribute. This is the wrong behavior: when instantiating attributes from a template, we should always instantiate all the attributes that were written on that template. This patch renames the flag in the Attr class (and TableGen sources) to more clearly identify what it's actually for, and removes the usage of the flag from template instantiation. I also removed the flag from AlignedAttr, which was only added to work around the incorrect suppression of duplicate attribute instantiation. llvm-svn: 321834
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions