Author: Timm Bäder Date: 2023-09-09T11:07:55+02:00 New Revision: 39db3b097a9b41bf5798209916cc54eecef40eee
URL: https://github.com/llvm/llvm-project/commit/39db3b097a9b41bf5798209916cc54eecef40eee DIFF: https://github.com/llvm/llvm-project/commit/39db3b097a9b41bf5798209916cc54eecef40eee.diff LOG: [clang][Interp][NFC] Remove unused Integral::from() overload Added: Modified: clang/lib/AST/Interp/Integral.h Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/Integral.h b/clang/lib/AST/Interp/Integral.h index 8d5edbb5b764eda..72285cabcbbf8ce 100644 --- a/clang/lib/AST/Interp/Integral.h +++ b/clang/lib/AST/Interp/Integral.h @@ -165,13 +165,6 @@ template <unsigned Bits, bool Signed> class Integral final { return Integral(Value.V); } - template <bool SrcSign> static Integral from(Integral<0, SrcSign> Value) { - if constexpr (SrcSign) - return Integral(Value.V.getSExtValue()); - else - return Integral(Value.V.getZExtValue()); - } - static Integral zero() { return from(0); } template <typename T> static Integral from(T Value, unsigned NumBits) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits