[flang] Add return statement to Logical opeator=.
[platform/upstream/llvm.git] / flang / include / flang / Evaluate / logical.h
index 44ba30a..ba3715a 100644 (file)
@@ -29,6 +29,7 @@ public:
 
   template <int B, bool C> constexpr Logical &operator=(Logical<B, C> x) {
     word_ = Represent(x.IsTrue());
+    return *this;
   }
 
   // Fortran actually has only .EQV. & .NEQV. relational operations