Fix LLVM trunk build.

This commit is contained in:
Johan Engelen 2017-07-02 21:11:07 +02:00
parent 9583b6ebe4
commit e8b28ebae9

View file

@ -61,8 +61,13 @@ createAndSetDiagnosticsOutputFile(IRState &irs, llvm::LLVMContext &ctx,
llvm::make_unique<llvm::yaml::Output>(diagnosticsOutputFile->os()));
// If there is instrumentation data available, also output function hotness
if (!global.params.genInstrProf && global.params.datafileInstrProf)
if (!global.params.genInstrProf && global.params.datafileInstrProf) {
#if LDC_LLVM_VER >= 500
ctx.setDiagnosticsHotnessRequested(true);
#else
ctx.setDiagnosticHotnessRequested(true);
#endif
}
}
#endif