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); } }; };