[flang-commits] [flang] ecc7f8a - [flang] Fix Windows build (take 2)

peter klausler via flang-commits flang-commits at lists.llvm.org
Tue Oct 12 18:32:23 PDT 2021


Author: peter klausler
Date: 2021-10-12T18:32:16-07:00
New Revision: ecc7f8ab74cdc106f2966597527f20a76118e27f

URL: https://github.com/llvm/llvm-project/commit/ecc7f8ab74cdc106f2966597527f20a76118e27f
DIFF: https://github.com/llvm/llvm-project/commit/ecc7f8ab74cdc106f2966597527f20a76118e27f.diff

LOG: [flang] Fix Windows build (take 2)

Remove the offending "operator=()" member functions.  This should
silence the MSVC warnings that persist in uint128.h.

Added: 
    

Modified: 
    flang/include/flang/Common/uint128.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Common/uint128.h b/flang/include/flang/Common/uint128.h
index adbeeb3fe6fd..b12e1729341f 100644
--- a/flang/include/flang/Common/uint128.h
+++ b/flang/include/flang/Common/uint128.h
@@ -51,16 +51,6 @@ template <bool IS_SIGNED = false> class Int128 {
       : low_{n.low()}, high_{n.high()} {}
   explicit constexpr Int128(Int128<!IS_SIGNED> &&n)
       : low_{n.low()}, high_{n.high()} {}
-  constexpr Int128 &operator=(const Int128<!IS_SIGNED> &n) {
-    low_ = n.low();
-    high_ = n.high();
-    return *this;
-  }
-  constexpr Int128 &operator=(Int128<!IS_SIGNED> &&n) {
-    low_ = n.low();
-    high_ = n.high();
-    return *this;
-  }
 
   constexpr Int128 operator+() const { return *this; }
   constexpr Int128 operator~() const { return {~high_, ~low_}; }


        


More information about the flang-commits mailing list