summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-08-03 19:24:27 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-08-03 19:24:27 +0000
commit578658205228e61e82a6ef6a5feb421fa776e6d9 (patch)
tree45d08ae78c694ea9a1838e6b859e708bd54547d4 /clang/lib/Sema/Sema.cpp
parentbecd2ef602f52a50134be9e9743dcc1e7cd44561 (diff)
downloadbcm5719-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.cpp3
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;
OpenPOWER on IntegriCloud