xo-jit: check non-null support pointers
This commit is contained in:
parent
38d9609147
commit
cf7bc43c5e
1 changed files with 9 additions and 0 deletions
|
|
@ -130,6 +130,15 @@ namespace xo {
|
|||
|
||||
llvm_module_->setDataLayout(kal_jit_->getDataLayout());
|
||||
|
||||
if (!llvm_cx_.get()) {
|
||||
throw std::runtime_error("Jit::ctor: expected non-empty llvm context");
|
||||
}
|
||||
if (!llvm_ir_builder_.get()) {
|
||||
throw std::runtime_error("Jit::ctor: expected non-empty llvm IR builder");
|
||||
}
|
||||
if (!llvm_module_.get()) {
|
||||
throw std::runtime_error("Jit::ctor: expected non-empty llvm module");
|
||||
}
|
||||
}
|
||||
|
||||
const std::string &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue