[Lldb-commits] [lldb] r175061 - Quiet "the missing case in switch statement" warnings from newer clang builds.

Greg Clayton gclayton at apple.com
Wed Feb 13 10:15:56 PST 2013


Author: gclayton
Date: Wed Feb 13 12:15:56 2013
New Revision: 175061

URL: http://llvm.org/viewvc/llvm-project?rev=175061&view=rev
Log:
Quiet "the missing case in switch statement" warnings from newer clang builds.


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

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=175061&r1=175060&r2=175061&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Feb 13 12:15:56 2013
@@ -3723,6 +3723,7 @@ ClangASTContext::GetLLDBBasicTypeEnumera
             case clang::BuiltinType::OCLImage2d:
             case clang::BuiltinType::OCLImage2dArray:
             case clang::BuiltinType::OCLImage3d:
+            case clang::BuiltinType::OCLSampler:
                 return eBasicTypeOther;
             }
         }
@@ -3761,6 +3762,7 @@ ClangASTContext::GetNumPointeeChildren (
         case clang::BuiltinType::OCLImage2d:
         case clang::BuiltinType::OCLImage2dArray:
         case clang::BuiltinType::OCLImage3d:
+        case clang::BuiltinType::OCLSampler:
             return 0;
         case clang::BuiltinType::Bool:
         case clang::BuiltinType::Char_U:
@@ -5716,6 +5718,7 @@ ClangASTContext::IsPossibleDynamicType (
                         case clang::BuiltinType::OCLImage2d:
                         case clang::BuiltinType::OCLImage2dArray:
                         case clang::BuiltinType::OCLImage3d:
+                        case clang::BuiltinType::OCLSampler:
                             break;
                     }
                     break;

Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=175061&r1=175060&r2=175061&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Wed Feb 13 12:15:56 2013
@@ -572,6 +572,7 @@ ClangASTType::GetFormat (clang_type_t cl
         case clang::BuiltinType::OCLImage2d:
         case clang::BuiltinType::OCLImage2dArray:
         case clang::BuiltinType::OCLImage3d:
+        case clang::BuiltinType::OCLSampler:
             return lldb::eFormatHex;
         }
         break;





More information about the lldb-commits mailing list