craig.topper added a comment. Where was there an implicit conversion to long? There is no implicit conversion operator on APInt. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D140347/new/ https://reviews.llvm.org/D140347