File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
llvm/unittests/ExecutionEngine/Orc Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,17 @@ class ReOptimizeLayerTest : public testing::Test {
43
43
consumeError (EPC.takeError ());
44
44
GTEST_SKIP ();
45
45
}
46
+
47
+ auto DLOrErr = JTMB->getDefaultDataLayoutForTarget ();
48
+ if (!DLOrErr) {
49
+ consumeError (DLOrErr.takeError ());
50
+ GTEST_SKIP ();
51
+ }
46
52
ES = std::make_unique<ExecutionSession>(std::move (*EPC));
47
53
JD = &ES->createBareJITDylib (" main" );
48
54
ObjLinkingLayer = std::make_unique<ObjectLinkingLayer>(
49
55
*ES, std::make_unique<InProcessMemoryManager>(16384 ));
50
- DL = std::make_unique<DataLayout>(
51
- cantFail (JTMB->getDefaultDataLayoutForTarget ()));
56
+ DL = std::make_unique<DataLayout>(std::move (*DLOrErr));
52
57
53
58
auto TM = JTMB->createTargetMachine ();
54
59
if (!TM) {
You can’t perform that action at this time.
0 commit comments