Relocate PPOpts variable initialization and remove comment.

This commit is contained in:
Frederich Munch 2016-08-10 21:23:47 -04:00 committed by sftnight
parent 2aba8b8cc8
commit 33c05d3105

View File

@ -807,18 +807,12 @@ namespace {
CI->setInvocation(Invocation);
CI->setDiagnostics(Diags.get());
PreprocessorOptions& PPOpts = CI->getInvocation().getPreprocessorOpts();
//
// Buffer the error messages while we process
// the compiler options.
//
if (PCHFileName.empty()) {
// Set the language options, which cling needs
SetClingCustomLangOpts(CI->getLangOpts());
}
PreprocessorOptions& PPOpts = CI->getInvocation().getPreprocessorOpts();
SetPreprocessorFromBinary(PPOpts);
PPOpts.addMacroDef("__CLING__");