From: Anastasia Stulova Date: Fri, 24 Mar 2017 16:43:51 +0000 (+0000) Subject: [OpenCL][Bug 10573] Don't set CXXOperatorNames flag X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77d9e02b331a2382c4030b890fa198788969efe1;p=clang [OpenCL][Bug 10573] Don't set CXXOperatorNames flag The flag CXXOperatorNames was overwritten unconditionally after being set for OpenCL. There seems to be no necessity to set it, so removing the line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298709 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index c1936209a3..1c2c11614a 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1642,7 +1642,6 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, if (Opts.OpenCL) { Opts.AltiVec = 0; Opts.ZVector = 0; - Opts.CXXOperatorNames = 1; Opts.LaxVectorConversions = 0; Opts.DefaultFPContract = 1; Opts.NativeHalfType = 1;