[cfe-commits] r161217 - in /cfe/trunk: include/clang/AST/Comment.h lib/AST/Comment.cpp lib/AST/CommentSema.cpp

Dmitri Gribenko gribozavr at gmail.com
Thu Aug 2 17:02:57 PDT 2012


On Thu, Aug 2, 2012 at 2:52 PM, Sean Silva <silvas at purdue.edu> wrote:
> Could that giant if ... else if .... else if block profitably be
> turned into a switch on Decl::getKind()?

Thanks for the suggestion!  Might also improve performance, too, since
we are getting rid of chained dyn_casts.  Done in r161225.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list