[llvm] 4c30d4b - [NFC][StackSafety] Change map key comparison
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 04:25:44 PDT 2020
Author: Vitaly Buka
Date: 2020-08-14T04:23:15-07:00
New Revision: 4c30d4b4e5f2c2cb80910638e7827f7b85ee5568
URL: https://github.com/llvm/llvm-project/commit/4c30d4b4e5f2c2cb80910638e7827f7b85ee5568
DIFF: https://github.com/llvm/llvm-project/commit/4c30d4b4e5f2c2cb80910638e7827f7b85ee5568.diff
LOG: [NFC][StackSafety] Change map key comparison
Added:
Modified:
llvm/lib/Analysis/StackSafetyAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index 15488c3f18d0..86c6bb538655 100644
--- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -101,7 +101,7 @@ template <typename CalleeTy> struct CallInfo {
struct Less {
bool operator()(const CallInfo &L, const CallInfo &R) const {
- return std::tie(L.Callee, L.ParamNo) < std::tie(R.Callee, R.ParamNo);
+ return std::tie(L.ParamNo, L.Callee) < std::tie(R.ParamNo, R.Callee);
}
};
};
More information about the llvm-commits
mailing list