Skip to content

Commit 222d8fa

Browse files
committed
[ORC] Try to skip unsupported targets in reoptimization test.
Many build bots are getting failures because of this: https://lab.llvm.org/buildbot/#/builders/140/builds/8600 https://lab.llvm.org/buildbot/#/builders/137/builds/6824 https://lab.llvm.org/buildbot/#/builders/140/builds/8600
1 parent 697d65d commit 222d8fa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

llvm/unittests/ExecutionEngine/Orc/JITLinkRedirectionManagerTest.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,19 @@ class JITLinkRedirectionManagerTest : public testing::Test {
3232
consumeError(JTMB.takeError());
3333
GTEST_SKIP();
3434
}
35+
auto DLOrErr = JTMB->getDefaultDataLayoutForTarget();
36+
if (!DLOrErr) {
37+
consumeError(DLOrErr.takeError());
38+
GTEST_SKIP();
39+
}
3540

3641
ES = std::make_unique<ExecutionSession>(
3742
std::make_unique<UnsupportedExecutorProcessControl>(
3843
nullptr, nullptr, JTMB->getTargetTriple().getTriple()));
3944
JD = &ES->createBareJITDylib("main");
4045
ObjLinkingLayer = std::make_unique<ObjectLinkingLayer>(
4146
*ES, std::make_unique<InProcessMemoryManager>(16384));
42-
DL = std::make_unique<DataLayout>(
43-
cantFail(JTMB->getDefaultDataLayoutForTarget()));
47+
DL = std::make_unique<DataLayout>(std::move(*DLOrErr));
4448
}
4549
JITDylib *JD{nullptr};
4650
std::unique_ptr<ExecutionSession> ES;

0 commit comments

Comments
 (0)