diff options
author | Justin Lebar <jlebar@google.com> | 2016-10-13 20:52:17 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-10-13 20:52:17 +0000 |
commit | eb0ae149757d64996935a281b0775978b1f2fe82 (patch) | |
tree | 63e73e52e0231b139a1e7a29da2d9ee164f9d4b7 /lib/Sema/SemaCUDA.cpp | |
parent | 45b902e6896fcf9db3e79c1e4a49424cb67c8447 (diff) | |
download | clang-eb0ae149757d64996935a281b0775978b1f2fe82.tar.gz |
Add and use isDiscardableGVALinkage function.
Reviewers: rnk
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D25571
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCUDA.cpp')
-rw-r--r-- | lib/Sema/SemaCUDA.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaCUDA.cpp b/lib/Sema/SemaCUDA.cpp index 5333a44275..18751d4104 100644 --- a/lib/Sema/SemaCUDA.cpp +++ b/lib/Sema/SemaCUDA.cpp @@ -546,7 +546,7 @@ static bool IsKnownEmitted(Sema &S, FunctionDecl *FD) { return false; // Externally-visible and similar functions are always emitted. - if (S.getASTContext().GetGVALinkageForFunction(FD) > GVA_DiscardableODR) + if (!isDiscardableGVALinkage(S.getASTContext().GetGVALinkageForFunction(FD))) return true; // Otherwise, the function is known-emitted if it's in our set of |