Commit 13ac7882 authored by Robert Kimball's avatar Robert Kimball Committed by Avijit

clear compiler warnings before each compile (#545)

parent 2feefb92
......@@ -274,6 +274,9 @@ std::unique_ptr<codegen::Module>
preprocessor_options.DisablePCHValidation = 0;
}
// Clear warnings and errors
m_compiler->getDiagnosticClient().clear();
// Map code filename to a memoryBuffer
StringRef source_ref(source);
unique_ptr<MemoryBuffer> buffer = MemoryBuffer::getMemBufferCopy(source_ref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment