diff options
author | bahareh-farhadi <53280095+bahareh-farhadi@users.noreply.github.com> | 2024-11-20 14:37:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 14:37:21 -0500 |
commit | 77ee94e78a52cf65e66c67804bf5b9bb5fe29b07 (patch) | |
tree | 23231d9ffc47986e4b3bec92db0b3ed6a8841e78 /llvm/lib | |
parent | 0bb1b683302e41bb1bdbcec1cbe724f54add0fa3 (diff) | |
download | llvm-77ee94e78a52cf65e66c67804bf5b9bb5fe29b07.zip llvm-77ee94e78a52cf65e66c67804bf5b9bb5fe29b07.tar.gz llvm-77ee94e78a52cf65e66c67804bf5b9bb5fe29b07.tar.bz2 |
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 <Abhina.Sreeskantharajan@ibm.com>
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |