[llvm] Add IsText parameter to open yaml file (PR #116992)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 07:44:08 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: None (bahareh-farhadi)
<details>
<summary>Changes</summary>
Add IsText parameter to open yaml file
this fixes `FAIL: LLVM :: Transforms/LowerTypeTests/cfi-icall-alias.ll`
---
Full diff: https://github.com/llvm/llvm-project/pull/116992.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/IPO/LowerTypeTests.cpp (+2-2)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/116992
More information about the llvm-commits
mailing list