forked from OSchip/llvm-project
[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
This commit is contained in:
parent
b14ff0caec
commit
9ba16615fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue