mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
getNullValue is in Constant again
Requires LLVM >= r77721
This commit is contained in:
@@ -811,7 +811,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
}
|
||||
}
|
||||
else
|
||||
llvm::ReturnInst::Create(gIR->context().getNullValue(func->getReturnType()), bb);
|
||||
llvm::ReturnInst::Create(LLConstant::getNullValue(func->getReturnType()), bb);
|
||||
}
|
||||
|
||||
// std::cout << *func << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user