From 9ba16615fa07c586965b1fa2dc6e88f13fe8031d Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Mon, 4 Nov 2019 09:20:38 +0100 Subject: [PATCH] [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 --- clang/lib/Sema/TreeTransform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index ad3db4e134df..8cf3722f33e8 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -4566,7 +4566,7 @@ QualType TreeTransform::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);