[PATCH] D21701: [AMDGPU] Fix warning

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 18:57:25 PDT 2016


arsenm added a comment.

It's undefined to be out of bounds value. Clang warns when there is a default when all enum values are covered. It won't warn on the non void here because it won't reach there. I think you have to move the unreachable after the switch and remove default


http://reviews.llvm.org/D21701





More information about the llvm-commits mailing list