diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-09-21 18:28:29 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-09-21 18:28:29 +0000 |
commit | 0a3a22fe665fc86119cf94690c09d13c9a8b4818 (patch) | |
tree | a8b496c9a837c2b3d259f2e81251006cfacd3452 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 37a7151b1fb990f2f09c51757d661d1f957e4e44 (diff) | |
download | llvm-0a3a22fe665fc86119cf94690c09d13c9a8b4818.zip llvm-0a3a22fe665fc86119cf94690c09d13c9a8b4818.tar.gz llvm-0a3a22fe665fc86119cf94690c09d13c9a8b4818.tar.bz2 |
In the OpenCL mode, the AltiVec mode must be off and checks must be strict
OpenCL is different from AltiVec in the way it supports vector literals. OpenCL
is strict with regards to semantic checks. For example, implicit conversions
and explicit casts between vectors of different types are disallowed.
Fixes PR10975. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com>
llvm-svn: 140270
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index a8d98b2..7cb707b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1492,9 +1492,9 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, // OpenCL has some additional defaults. if (LangStd == LangStandard::lang_opencl) { Opts.OpenCL = 1; - Opts.AltiVec = 1; + Opts.AltiVec = 0; Opts.CXXOperatorNames = 1; - Opts.LaxVectorConversions = 1; + Opts.LaxVectorConversions = 0; Opts.DefaultFPContract = 1; } |