diff --git a/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp b/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp index 3cacb90cace52..7f1eeef8ea0fd 100644 --- a/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp +++ b/clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp @@ -1575,6 +1575,10 @@ template using ParamToSmallSetMap = llvm::DenseMap>; +template +using ParamToSmallPtrSetMap = + llvm::DenseMap>; + /// Returns whether the sets mapped to the two elements in the map have at /// least one element in common. template @@ -1699,7 +1703,7 @@ class PassedToSameFunction { /// Implements the heuristic that marks two parameters related if the same /// member is accessed (referred to) inside the current function's body. class AccessedSameMemberOf { - ParamToSmallSetMap AccessedMembers; + ParamToSmallPtrSetMap AccessedMembers; public: void setup(const FunctionDecl *FD) {