summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-05-30 03:40:04 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-05-30 03:40:04 +0000
commit54d13b4068288199918eb8f9dcbb090055bd9a5f (patch)
tree330b49465e74092010a6aeb73eca9ccae79c16d3 /clang/lib/Frontend/CompilerInvocation.cpp
parent3d9305f28bf759010e335c3db68301fd4fe61755 (diff)
downloadbcm5719-llvm-54d13b4068288199918eb8f9dcbb090055bd9a5f.tar.gz
bcm5719-llvm-54d13b4068288199918eb8f9dcbb090055bd9a5f.zip
Sema: Add a flag for rejecting member pointers with incomplete base types.
Codebases that need to be compatible with the Microsoft ABI can pass this flag to avoid issues caused by the lack of a fixed ABI for incomplete member pointers. Differential Revision: https://reviews.llvm.org/D47503 llvm-svn: 333498
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 75d6a26cdb7..594164332ec 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2754,6 +2754,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
<< A->getAsString(Args) << A->getValue();
}
}
+
+ Opts.CompleteMemberPointers = Args.hasArg(OPT_fcomplete_member_pointers);
}
static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) {
OpenPOWER on IntegriCloud