summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-11-04 09:20:38 +0100
committerIlya Biryukov <ibiryukov@google.com>2019-11-04 17:07:53 +0100
commit9ba16615fa07c586965b1fa2dc6e88f13fe8031d (patch)
tree9ca3a1b4b6179413c1125eaa174128e9e87471bf
parentb14ff0caecbdbb8312e5671047b9b1dff32da1ca (diff)
downloadbcm5719-llvm-9ba16615fa07c586965b1fa2dc6e88f13fe8031d.tar.gz
bcm5719-llvm-9ba16615fa07c586965b1fa2dc6e88f13fe8031d.zip
[Sema] Make helper in TreeTransform.h 'inline' instead of 'static'. NFC
Summary: There seems to be no evidence that having internal linkage for the function was intentional. Since 'static' functions are normally used only in .cpp files, using 'inline' in the header file is more appropriate. Reviewers: Anastasia Reviewed By: Anastasia Subscribers: merge_guards_bot, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D69242
-rw-r--r--clang/lib/Sema/TreeTransform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index ad3db4e134d..8cf3722f33e 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -4566,7 +4566,7 @@ QualType TreeTransform<Derived>::TransformDecayedType(TypeLocBuilder &TLB,
/// Helper to deduce addr space of a pointee type in OpenCL mode.
/// If the type is updated it will be overwritten in PointeeType param.
-static void deduceOpenCLPointeeAddrSpace(Sema &SemaRef, QualType &PointeeType) {
+inline void deduceOpenCLPointeeAddrSpace(Sema &SemaRef, QualType &PointeeType) {
if (PointeeType.getAddressSpace() == LangAS::Default)
PointeeType = SemaRef.Context.getAddrSpaceQualType(PointeeType,
LangAS::opencl_generic);
OpenPOWER on IntegriCloud