From 1a0d6992aeeaff7a70adfa5079fc9c64ef156b48 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Tue, 29 Aug 2023 14:13:07 -0700 Subject: [llvm][ReadTAPI] Add & fix rpath comparison checks * Check and emit out differences in rpath inputs * Prevent rpaths from being overwritten * Capture file path for tbd-v5 --- llvm/lib/TextAPI/TextStub.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/TextAPI/TextStub.cpp') diff --git a/llvm/lib/TextAPI/TextStub.cpp b/llvm/lib/TextAPI/TextStub.cpp index e6dc0a4..b9b6061 100644 --- a/llvm/lib/TextAPI/TextStub.cpp +++ b/llvm/lib/TextAPI/TextStub.cpp @@ -1119,6 +1119,8 @@ TextAPIReader::get(MemoryBufferRef InputBuffer) { auto FileOrErr = getInterfaceFileFromJSON(InputBuffer.getBuffer()); if (!FileOrErr) return FileOrErr.takeError(); + + (*FileOrErr)->setPath(Ctx.Path); return std::move(*FileOrErr); } yaml::Input YAMLIn(InputBuffer.getBuffer(), &Ctx, DiagHandler, &Ctx); -- cgit v1.1