Use the setter.

This commit is contained in:
Vassil Vassilev 2017-10-12 15:41:58 +02:00 committed by sftnight
parent 16c99f41f6
commit 97f45536c3

View File

@ -216,7 +216,7 @@ namespace cling {
// Initialize the opt level to what CodeGenOpts says.
if (m_OptLevel == -1)
m_OptLevel = getCI()->getCodeGenOpts().OptimizationLevel;
setDefaultOptLevel(getCI()->getCodeGenOpts().OptimizationLevel);
Sema& SemaRef = getSema();
Preprocessor& PP = SemaRef.getPreprocessor();