From: Benjamin Kramer Date: Sun, 15 Jan 2023 20:39:31 +0000 (+0100) Subject: [lldb] Unbreak test after 931d04be2fc8f3f0505b43e64297f75d526cb42a X-Git-Tag: upstream/17.0.6~20867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8959968b7225d154dca05cdeee17f9477429c420;p=platform%2Fupstream%2Fllvm.git [lldb] Unbreak test after 931d04be2fc8f3f0505b43e64297f75d526cb42a --- 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);