[Lldb-commits] [lldb] r301524 - Fix build for clang r301507

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 27 01:49:19 PDT 2017


Author: labath
Date: Thu Apr 27 03:49:19 2017
New Revision: 301524

URL: http://llvm.org/viewvc/llvm-project?rev=301524&view=rev
Log:
Fix build for clang r301507

LangStandard::lang_opencl -> LangStandard::lang_opencl10

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=301524&r1=301523&r2=301524&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Thu Apr 27 03:49:19 2017
@@ -394,7 +394,7 @@ static void ParseLangArgs(LangOptions &O
     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 &O
   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;




More information about the lldb-commits mailing list