[PATCH] D69139: [Types] Define a changeBitWidth for Types and make use of it.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 16:11:31 PDT 2019


dmgreen added a comment.

Hows about a static getWithNewBitWidth(Type*, NewBitWidth)? Similar to Types existing static get methods.

So used like: `Type *CondTy = Type::getWithNewBitWidth(RetTy, 1)`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69139/new/

https://reviews.llvm.org/D69139





More information about the llvm-commits mailing list