mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
Fix build for clang r301507
LangStandard::lang_opencl -> LangStandard::lang_opencl10 llvm-svn: 301524
This commit is contained in:
parent
360d0f23ee
commit
4716854687
@ -394,7 +394,7 @@ static void ParseLangArgs(LangOptions &Opts, InputKind IK, const char *triple) {
|
||||
case InputKind::RenderScript:
|
||||
llvm_unreachable("Invalid input kind!");
|
||||
case InputKind::OpenCL:
|
||||
LangStd = LangStandard::lang_opencl;
|
||||
LangStd = LangStandard::lang_opencl10;
|
||||
break;
|
||||
case InputKind::CUDA:
|
||||
LangStd = LangStandard::lang_cuda;
|
||||
@ -425,7 +425,7 @@ static void ParseLangArgs(LangOptions &Opts, InputKind IK, const char *triple) {
|
||||
Opts.WChar = true;
|
||||
|
||||
// OpenCL has some additional defaults.
|
||||
if (LangStd == LangStandard::lang_opencl) {
|
||||
if (LangStd == LangStandard::lang_opencl10) {
|
||||
Opts.OpenCL = 1;
|
||||
Opts.AltiVec = 1;
|
||||
Opts.CXXOperatorNames = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user