[Lldb-commits] [lldb] r240606 - Handle (or at least don't crash) trying to get the encoding for a bunch of new builtin types in clang trunk

Ed Maste emaste at freebsd.org
Mon Jun 29 08:17:41 PDT 2015


On 24 June 2015 at 19:13, Enrico Granata <egranata at apple.com> wrote:
> Author: enrico
> Date: Wed Jun 24 18:13:23 2015
> New Revision: 240606
>
> URL: http://llvm.org/viewvc/llvm-project?rev=240606&view=rev
> Log:
> Handle (or at least don't crash) trying to get the encoding for a bunch of new builtin types in clang trunk

This introduces a warning now that all enum values are covered in the switch.

../tools/lldb/source/Symbol/ClangASTType.cpp:2215:13: warning: default
label in switch which covers all enumeration values
[-Wcovered-switch-default]
            default: assert(0 && "Unknown builtin type!");

Shall I just remove the default?



More information about the lldb-commits mailing list