Skip to content

Commit 9ba1661

Browse files
committed
[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
1 parent b14ff0c commit 9ba1661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/TreeTransform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4566,7 +4566,7 @@ QualType TreeTransform<Derived>::TransformDecayedType(TypeLocBuilder &TLB,
45664566

45674567
/// Helper to deduce addr space of a pointee type in OpenCL mode.
45684568
/// If the type is updated it will be overwritten in PointeeType param.
4569-
static void deduceOpenCLPointeeAddrSpace(Sema &SemaRef, QualType &PointeeType) {
4569+
inline void deduceOpenCLPointeeAddrSpace(Sema &SemaRef, QualType &PointeeType) {
45704570
if (PointeeType.getAddressSpace() == LangAS::Default)
45714571
PointeeType = SemaRef.Context.getAddrSpaceQualType(PointeeType,
45724572
LangAS::opencl_generic);

0 commit comments

Comments
 (0)