[PATCH] D149434: [PGO] Fix expensive test compilation error
Christian Ulmann via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 05:17:38 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4030fff06ac1: [PGO] Fix expensive test compilation error (authored by Dinistro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149434/new/
https://reviews.llvm.org/D149434
Files:
llvm/unittests/ProfileData/InstrProfTest.cpp
Index: llvm/unittests/ProfileData/InstrProfTest.cpp
===================================================================
--- llvm/unittests/ProfileData/InstrProfTest.cpp
+++ llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -1356,16 +1356,18 @@
if (!RawProfile)
GTEST_SKIP();
auto RawProfileReaderOrErr = InstrProfReader::create(std::move(RawProfile));
- ASSERT_TRUE(InstrProfError::take(RawProfileReaderOrErr.takeError()) ==
- instrprof_error::unrecognized_format);
+ ASSERT_TRUE(
+ std::get<0>(InstrProfError::take(RawProfileReaderOrErr.takeError())) ==
+ instrprof_error::unrecognized_format);
auto IndexedProfile = WritableMemoryBuffer::getNewUninitMemBuffer(LargeSize);
if (!IndexedProfile)
GTEST_SKIP();
auto IndexedReaderOrErr =
IndexedInstrProfReader::create(std::move(IndexedProfile), nullptr);
- ASSERT_TRUE(InstrProfError::take(IndexedReaderOrErr.takeError()) ==
- instrprof_error::bad_magic);
+ ASSERT_TRUE(
+ std::get<0>(InstrProfError::take(IndexedReaderOrErr.takeError())) ==
+ instrprof_error::bad_magic);
}
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149434.517879.patch
Type: text/x-patch
Size: 1116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/031def97/attachment.bin>
More information about the llvm-commits
mailing list