Fix inaccurate comment about -fdelayed-template-parsing and MSVC

llvm-svn: 311899
This commit is contained in:
Reid Kleckner 2017-08-28 17:59:24 +00:00
parent edd66ab9dc
commit ea2683ecb8
1 changed files with 4 additions and 2 deletions

View File

@ -3846,8 +3846,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
!IsWindowsMSVC || IsMSVC2015Compatible))
CmdArgs.push_back("-fno-threadsafe-statics");
// -fno-delayed-template-parsing is default, except for Windows where MSVC STL
// needs it.
// -fno-delayed-template-parsing is default, except when targetting MSVC.
// Many old Windows SDK versions require this to parse.
// FIXME: MSVC introduced /Zc:twoPhase- to disable this behavior in their
// compiler. We should be able to disable this by default at some point.
if (Args.hasFlag(options::OPT_fdelayed_template_parsing,
options::OPT_fno_delayed_template_parsing, IsWindowsMSVC))
CmdArgs.push_back("-fdelayed-template-parsing");