From 77ee94e78a52cf65e66c67804bf5b9bb5fe29b07 Mon Sep 17 00:00:00 2001 From: bahareh-farhadi <53280095+bahareh-farhadi@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:37:21 -0500 Subject: Add IsText parameter to open yaml file (#116992) Add IsText parameter to open yaml file this fixes `FAIL: LLVM :: Transforms/LowerTypeTests/cfi-icall-alias.ll` Co-authored-by: Abhina Sreeskantharajan --- llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp index bfcf491..87d2432 100644 --- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp @@ -1876,8 +1876,8 @@ bool LowerTypeTestsModule::runForTesting(Module &M, ModuleAnalysisManager &AM) { if (!ClReadSummary.empty()) { ExitOnError ExitOnErr("-lowertypetests-read-summary: " + ClReadSummary + ": "); - auto ReadSummaryFile = - ExitOnErr(errorOrToExpected(MemoryBuffer::getFile(ClReadSummary))); + auto ReadSummaryFile = ExitOnErr(errorOrToExpected( + MemoryBuffer::getFile(ClReadSummary, /*IsText=*/true))); yaml::Input In(ReadSummaryFile->getBuffer()); In >> Summary; -- cgit v1.1