PPU/LLVM: Properly print verification string

This commit is contained in:
Vincent Lejeune 2015-08-25 23:43:19 +02:00
parent eb90e509f9
commit 241dedef4e
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ std::pair<Executable, llvm::ExecutionEngine *> Compiler::Compile(const std::stri
std::string verify; std::string verify;
raw_string_ostream verify_ostream(verify); raw_string_ostream verify_ostream(verify);
if (verifyFunction(*m_state.function, &verify_ostream)) { if (verifyFunction(*m_state.function, &verify_ostream)) {
m_recompilation_engine.Log() << "Verification failed: " << verify << "\n"; m_recompilation_engine.Log() << "Verification failed: " << verify_ostream.str() << "\n";
} }
auto ir_build_end = std::chrono::high_resolution_clock::now(); auto ir_build_end = std::chrono::high_resolution_clock::now();