diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-16 13:03:14 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-16 13:03:14 +0000 |
commit | 36a5350e51a6dcfae424332aaa266a1e5bfb8c4f (patch) | |
tree | 4a97f7178bb62aece03a55278b72d7e675f1897b /clang/lib/Sema/Sema.cpp | |
parent | c61623b1708fa7aff26cdaf25a6007f7d656ba7d (diff) | |
download | bcm5719-llvm-36a5350e51a6dcfae424332aaa266a1e5bfb8c4f.tar.gz bcm5719-llvm-36a5350e51a6dcfae424332aaa266a1e5bfb8c4f.zip |
Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute.
Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it.
llvm-svn: 199378
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index badff7e0dc8..9ab3bea2744 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -255,7 +255,7 @@ bool Sema::makeUnavailableInSystemHeader(SourceLocation loc, // If the function is already unavailable, it's not an error. if (fn->hasAttr<UnavailableAttr>()) return true; - fn->addAttr(new (Context) UnavailableAttr(loc, Context, msg)); + fn->addAttr(UnavailableAttr::CreateImplicit(Context, msg, loc)); return true; } |