[Lldb-commits] [lldb] 8959968 - [lldb] Unbreak test after 931d04be2fc8f3f0505b43e64297f75d526cb42a
Benjamin Kramer via lldb-commits
lldb-commits at lists.llvm.org
Sun Jan 15 12:42:13 PST 2023
Author: Benjamin Kramer
Date: 2023-01-15T21:39:31+01:00
New Revision: 8959968b7225d154dca05cdeee17f9477429c420
URL: https://github.com/llvm/llvm-project/commit/8959968b7225d154dca05cdeee17f9477429c420
DIFF: https://github.com/llvm/llvm-project/commit/8959968b7225d154dca05cdeee17f9477429c420.diff
LOG: [lldb] Unbreak test after 931d04be2fc8f3f0505b43e64297f75d526cb42a
Added:
Modified:
lldb/unittests/Core/SourceLocationSpecTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Core/SourceLocationSpecTest.cpp b/lldb/unittests/Core/SourceLocationSpecTest.cpp
index 0cf1683906eed..0b451f56c765a 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);
More information about the lldb-commits
mailing list