File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
llvm/unittests/ExecutionEngine/Orc Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,19 @@ class JITLinkRedirectionManagerTest : public testing::Test {
32
32
consumeError (JTMB.takeError ());
33
33
GTEST_SKIP ();
34
34
}
35
+ auto DLOrErr = JTMB->getDefaultDataLayoutForTarget ();
36
+ if (!DLOrErr) {
37
+ consumeError (DLOrErr.takeError ());
38
+ GTEST_SKIP ();
39
+ }
35
40
36
41
ES = std::make_unique<ExecutionSession>(
37
42
std::make_unique<UnsupportedExecutorProcessControl>(
38
43
nullptr , nullptr , JTMB->getTargetTriple ().getTriple ()));
39
44
JD = &ES->createBareJITDylib (" main" );
40
45
ObjLinkingLayer = std::make_unique<ObjectLinkingLayer>(
41
46
*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));
44
48
}
45
49
JITDylib *JD{nullptr };
46
50
std::unique_ptr<ExecutionSession> ES;
You can’t perform that action at this time.
0 commit comments