[clang] 39db3b0 - [clang][Interp][NFC] Remove unused Integral::from() overload

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 9 02:08:15 PDT 2023


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) {


        


More information about the cfe-commits mailing list