diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2018-04-23 11:23:47 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2018-04-23 11:23:47 +0000 |
commit | 1fb3c210ec2babc6b741fc4b8607c20e015fba4e (patch) | |
tree | 85808e1a1920a57fe297ec6d35021267135135e2 /lib/Frontend/CompilerInvocation.cpp | |
parent | 53b59bc2474592d8f536333bae403e266ddda2e6 (diff) | |
download | clang-1fb3c210ec2babc6b741fc4b8607c20e015fba4e.tar.gz |
[OpenCL] Reject virtual functions for OpenCL C++
Differential Revision: https://reviews.llvm.org/D45873
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330579 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 f904e65e72..c516738fb7 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1927,6 +1927,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, Opts.setDefaultFPContractMode(LangOptions::FPC_On); Opts.NativeHalfType = 1; Opts.NativeHalfArgsAndReturns = 1; + Opts.OpenCLCPlusPlus = Opts.CPlusPlus; // Include default header file for OpenCL. if (Opts.IncludeDefaultHeader) { PPOpts.Includes.push_back("opencl-c.h"); |