Skip to content

Commit

Permalink
Fix inaccurate comment about -fdelayed-template-parsing and MSVC
Browse files Browse the repository at this point in the history
llvm-svn: 311899
  • Loading branch information
rnk committed Aug 28, 2017
1 parent edd66ab commit ea2683e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/lib/Driver/ToolChains/Clang.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit ea2683e

Please sign in to comment.