[llvm] r263848 - [Support] Update comment to match actual behavior.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 15:44:16 PDT 2016


Author: lhames
Date: Fri Mar 18 17:44:16 2016
New Revision: 263848

URL: http://llvm.org/viewvc/llvm-project?rev=263848&view=rev
Log:
[Support] Update comment to match actual behavior.

Modified:
    llvm/trunk/include/llvm/Support/Error.h

Modified: llvm/trunk/include/llvm/Support/Error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Error.h?rev=263848&r1=263847&r2=263848&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Error.h (original)
+++ llvm/trunk/include/llvm/Support/Error.h Fri Mar 18 17:44:16 2016
@@ -163,8 +163,7 @@ public:
   /// considered unchecked. The source error becomes a checked success value,
   /// regardless of its original state.
   Error &operator=(Error &&Other) {
-    // Move assignment shouldn't drop an existing error, but we won't complain
-    // about overwriting success.
+    // Don't allow overwriting of unchecked values.
     assertIsChecked();
     setPtr(Other.getPtr());
 




More information about the llvm-commits mailing list