clover: Fix build after LLVM r313390
v2: pass llvm context reference instead of a pointer Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
@@ -89,7 +89,7 @@ namespace {
|
||||
create_context(std::string &r_log) {
|
||||
init_targets();
|
||||
std::unique_ptr<LLVMContext> ctx { new LLVMContext };
|
||||
ctx->setDiagnosticHandler(diagnostic_handler, &r_log);
|
||||
compat::set_diagnostic_handler(*ctx, diagnostic_handler, &r_log);
|
||||
return ctx;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user