[llvm] Add IsText parameter to open yaml file (PR #116992)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 07:43:15 PST 2024
https://github.com/bahareh-farhadi created https://github.com/llvm/llvm-project/pull/116992
Add IsText parameter to open yaml file
this fixes FAIL: LLVM :: Transforms/LowerTypeTests/cfi-icall-alias.ll
>From 76970b1d5bf5af3c5b22e6cf9e696d4ca734a545 Mon Sep 17 00:00:00 2001
From: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
Date: Wed, 20 Nov 2024 09:52:48 -0500
Subject: [PATCH] add IsText parameter to open yaml file (#9899)
---
llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
index bfcf491f36ea1f..87d2432803062b 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;
More information about the llvm-commits
mailing list