Skip to content

Commit 6c49873

Browse files
tqchenjoker-eph
andauthored
Update mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp
Co-authored-by: Mehdi Amini <[email protected]>
1 parent b7cb15f commit 6c49873

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ mlirExecutionEngineCreate(MlirModule op, int optLevel, int numPaths,
4343
consumeError(tmBuilderOrError.takeError());
4444
return MlirExecutionEngine{nullptr};
4545
}
46-
if (enablePIC) {
46+
if (enablePIC)
4747
tmBuilderOrError->setRelocationModel(llvm::Reloc::PIC_);
48-
}
4948
auto tmOrError = tmBuilderOrError->createTargetMachine();
5049
if (!tmOrError) {
5150
llvm::errs() << "Failed to create a TargetMachine for the host because: \n";

0 commit comments

Comments
 (0)