[llvm-commits] [llvm] r81179 - /llvm/trunk/lib/VMCore/Verifier.cpp

Chris Lattner clattner at apple.com
Mon Sep 7 20:48:15 PDT 2009


On Sep 7, 2009, at 7:02 PM, Nick Lewycky wrote:
>>> +
>>> +  switch (Ty->getTypeID()) {
>>> +  case Type::FunctionTyID: {
>>> +    if (!CheckedTypes.insert(Ty)) return;
>> Why don't you do the insert before the switch?
>
> Because I don't want to insert the integers, double, labels, etc.  
> They all go through the default case.

Why not?

-Chris




More information about the llvm-commits mailing list