summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-05-07 02:25:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-05-07 02:25:43 +0000
commit3d23c42029a8675f388c996fc7e7c1aff5e85f43 (patch)
tree7867dc23443f2c78d542641d80c731461d228975 /clang/lib/Frontend/CompilerInvocation.cpp
parentcf27e1b996f290c4ae186fd9060bf5b36302b3ec (diff)
downloadbcm5719-llvm-3d23c42029a8675f388c996fc7e7c1aff5e85f43.tar.gz
bcm5719-llvm-3d23c42029a8675f388c996fc7e7c1aff5e85f43.zip
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. llvm-svn: 208150
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index f499ae0f833..0b6b765dba7 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud