summaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-06-20 21:12:20 +0000
committerReid Kleckner <rnk@google.com>2018-06-20 21:12:20 +0000
commit443ea9f82a450eca95affcddefed86a5aec03618 (patch)
tree924b6de17be6f9827351b2bc5c6a18eceae95ebc /lib/Sema/Sema.cpp
parent0dbae3ef60d986835e2035443bdf5cee17940074 (diff)
downloadclang-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.cpp2
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)