diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-08-03 19:24:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-08-03 19:24:27 +0000 |
commit | 578658205228e61e82a6ef6a5feb421fa776e6d9 (patch) | |
tree | 45d08ae78c694ea9a1838e6b859e708bd54547d4 /clang/lib/Sema/Sema.cpp | |
parent | becd2ef602f52a50134be9e9743dcc1e7cd44561 (diff) | |
download | bcm5719-llvm-578658205228e61e82a6ef6a5feb421fa776e6d9.tar.gz bcm5719-llvm-578658205228e61e82a6ef6a5feb421fa776e6d9.zip |
Don't emit undefined-internal warnings for CXXDeductionGuideDecls.
Patch by ~paul (cynecx on phabricator)! Some test massaging by me.
llvm-svn: 309975
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 40ffa09de1a..e99e73fc8da 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -595,6 +595,9 @@ void Sema::getUndefinedButUsed( // __attribute__((weakref)) is basically a definition. if (ND->hasAttr<WeakRefAttr>()) continue; + if (isa<CXXDeductionGuideDecl>(ND)) + continue; + if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { if (FD->isDefined()) continue; |