hans added a comment. Please make areJTsAllowed() take a Function* parameter and do the check there instead. That way, the code will not waste time in findJumpTables() only to decide later to not build any. http://reviews.llvm.org/D18321