diff --git a/llvm/include/llvm/ADT/ilist.h b/llvm/include/llvm/ADT/ilist.h index cb7480b82114..d5a1f286b177 100644 --- a/llvm/include/llvm/ADT/ilist.h +++ b/llvm/include/llvm/ADT/ilist.h @@ -203,7 +203,7 @@ public: iplist_impl &operator=(iplist_impl &&X) { *static_cast(this) = std::move(static_cast(X)); *static_cast(this) = - std::move(static_cast); + std::move(static_cast(X)); return *this; }