Skip to content

Commit e3a6092

Browse files
committed
Add cpu attrs to llvm code generation.
1 parent f950e4d commit e3a6092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/src/gandiva/engine.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ Engine::Engine(const std::shared_ptr<Configuration>& conf,
330330
// LLVM 10 doesn't like the expr function name to be the same as the module name
331331
auto module_id = "gdv_module_" + std::to_string(reinterpret_cast<uintptr_t>(this));
332332
module_ = std::make_unique<llvm::Module>(module_id, *context_);
333+
module_->setDataLayout(target_machine_->createDataLayout());
333334
}
334335

335336
Engine::~Engine() {}

0 commit comments

Comments
 (0)