barannikov88 added a comment. TargetConstant's type is not checked for legality, right? In this case it could be i1 as well. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130370/new/ https://reviews.llvm.org/D130370