From 8959968b7225d154dca05cdeee17f9477429c420 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 15 Jan 2023 21:39:31 +0100 Subject: [PATCH] [lldb] Unbreak test after 931d04be2fc8f3f0505b43e64297f75d526cb42a --- lldb/unittests/Core/SourceLocationSpecTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/unittests/Core/SourceLocationSpecTest.cpp b/lldb/unittests/Core/SourceLocationSpecTest.cpp index 0cf1683..0b451f5 100644 --- a/lldb/unittests/Core/SourceLocationSpecTest.cpp +++ b/lldb/unittests/Core/SourceLocationSpecTest.cpp @@ -122,7 +122,7 @@ TEST(SourceLocationSpecTest, Equal) { TEST(SourceLocationSpecTest, Compare) { auto Cmp = [](SourceLocationSpec a, SourceLocationSpec b) { - return SourceLocationSpec::Compare(a, b); + return std::clamp(SourceLocationSpec::Compare(a, b), -1, 1); }; FileSpec fs("/foo/bar", FileSpec::Style::posix); -- 2.7.4