[LLVMdev] [llvm-commits] PROPOSAL: LLVM_FALLTHROUGH macro for intended fall-throughs between switch cases

Chris Lattner clattner at apple.com
Thu Jul 26 16:07:07 PDT 2012


<dropping llvm-commits>

On Jul 2, 2012, at 9:59 AM, Alexander Kornienko wrote:

> Hi llvmdev, llvm-commits,
> 
> There was a discussion on this topic a while ago, and now I've decided to make a formal proposal and post it here.

I missed the earlier discussion, so I'm sorry for chiming in late.

> I propose to add the LLVM_FALLTHROUGH macro for specifying intended fall-through locations between switch cases. 

I don't really see that the tradeoff here is worthwhile.  It is possible that we have some fallthrough bugs, but the cost of sprinkling this macro everywhere doesn't seem like the right tradeoff.

-Chris




More information about the llvm-dev mailing list