From 4c30d4b4e5f2c2cb80910638e7827f7b85ee5568 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 14 Aug 2020 04:23:15 -0700 Subject: [PATCH] [NFC][StackSafety] Change map key comparison --- llvm/lib/Analysis/StackSafetyAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); } }; };