diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index bcd2becc2a922..557281499998a 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -406,6 +406,7 @@ TEST_F(SourceManagerTest, getLineNumber) { struct FakeExternalSLocEntrySource : ExternalSLocEntrySource { bool ReadSLocEntry(int ID) override { return {}; } + int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override { return 0; } std::pair getModuleImportLoc(int ID) override { return {}; }