Skip to content

Commit 3527a02

Browse files
committed
Fix clangd unittest
1 parent 25aa128 commit 3527a02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang-tools-extra/clangd/unittests/SourceCodeTests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,9 @@ TEST(SourceCodeTests, isSpelledInSource) {
829829
// FIXME: Should it return false on SourceLocation()? Does it matter?
830830
EXPECT_TRUE(isSpelledInSource(SourceLocation(), SM));
831831
EXPECT_FALSE(isSpelledInSource(
832-
SourceLocation::getFromRawEncoding(SourceLocation::UIntTy(1 << 31)), SM));
832+
SourceLocation::getFromRawEncoding(
833+
SourceLocation::UIntTy(1ULL << (SourceLocation::Bits - 1))),
834+
SM));
833835
}
834836

835837
struct IncrementalTestStep {

0 commit comments

Comments
 (0)