diff options
author | Reid Kleckner <rnk@google.com> | 2018-06-20 21:12:20 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-06-20 21:12:20 +0000 |
commit | 443ea9f82a450eca95affcddefed86a5aec03618 (patch) | |
tree | 924b6de17be6f9827351b2bc5c6a18eceae95ebc /lib/Sema/Sema.cpp | |
parent | 0dbae3ef60d986835e2035443bdf5cee17940074 (diff) | |
download | clang-443ea9f82a450eca95affcddefed86a5aec03618.tar.gz |
[MS] Make sure __GetExceptionInfo works on types with no linkage
Fixes PR36327
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index aa4f6461b6..7a8cd1ca4e 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -645,6 +645,8 @@ void Sema::getUndefinedButUsed( !isExternalWithNoLinkageType(FD) && !FD->getMostRecentDecl()->isInlined()) continue; + if (FD->getBuiltinID()) + continue; } else { auto *VD = cast<VarDecl>(ND); if (VD->hasDefinition() != VarDecl::DeclarationOnly) |