summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCUDA.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-10-13 20:52:17 +0000
committerJustin Lebar <jlebar@google.com>2016-10-13 20:52:17 +0000
commiteb0ae149757d64996935a281b0775978b1f2fe82 (patch)
tree63e73e52e0231b139a1e7a29da2d9ee164f9d4b7 /lib/Sema/SemaCUDA.cpp
parent45b902e6896fcf9db3e79c1e4a49424cb67c8447 (diff)
downloadclang-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.cpp2
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