Skip to content

Commit a9136f0

Browse files
[Utils] Use std::remove_pointer_t (NFC)
1 parent 6e18003 commit a9136f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Utils/SampleProfileInference.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void applyFlowInference(FlowFunction &Func);
119119
template <typename FT> class SampleProfileInference {
120120
public:
121121
using NodeRef = typename GraphTraits<FT *>::NodeRef;
122-
using BasicBlockT = typename std::remove_pointer<NodeRef>::type;
122+
using BasicBlockT = std::remove_pointer_t<NodeRef>;
123123
using FunctionT = FT;
124124
using Edge = std::pair<const BasicBlockT *, const BasicBlockT *>;
125125
using BlockWeightMap = DenseMap<const BasicBlockT *, uint64_t>;

llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ template <typename FT> class SampleProfileLoaderBaseImpl {
152152
void dump() { Reader->dump(); }
153153

154154
using NodeRef = typename GraphTraits<FT *>::NodeRef;
155-
using BT = typename std::remove_pointer<NodeRef>::type;
155+
using BT = std::remove_pointer_t<NodeRef>;
156156
using InstructionT = typename afdo_detail::IRTraits<BT>::InstructionT;
157157
using BasicBlockT = typename afdo_detail::IRTraits<BT>::BasicBlockT;
158158
using BlockFrequencyInfoT =

0 commit comments

Comments
 (0)