diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-07 02:25:43 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-07 02:25:43 +0000 |
| commit | 67198ad8f5872a5b29ce440a1388a70dca437d95 (patch) | |
| tree | 5b0077690fb97eb949776529dec9029642b23f66 /lib/Frontend/CompilerInvocation.cpp | |
| parent | c40a46cf23e37a077c212f98407c5f3e58973793 (diff) | |
| download | clang-67198ad8f5872a5b29ce440a1388a70dca437d95.tar.gz clang-67198ad8f5872a5b29ce440a1388a70dca437d95.tar.bz2 clang-67198ad8f5872a5b29ce440a1388a70dca437d95.tar.xz | |
If an instantiation of a template is required to be a complete type, check
whether the definition of the template is visible rather than checking whether
the instantiated definition happens to be in an imported module.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index f499ae0f83..0b6b765dba 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1359,6 +1359,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.ModulesSearchAll = Opts.Modules && !Args.hasArg(OPT_fno_modules_search_all) && Args.hasArg(OPT_fmodules_search_all); + Opts.ModulesErrorRecovery = !Args.hasArg(OPT_fno_modules_error_recovery); Opts.CharIsSigned = Opts.OpenCL || !Args.hasArg(OPT_fno_signed_char); Opts.WChar = Opts.CPlusPlus && !Args.hasArg(OPT_fno_wchar); Opts.ShortWChar = Args.hasFlag(OPT_fshort_wchar, OPT_fno_short_wchar, false); |
