OSDN Git Service

[Support] Update comment to match actual behavior.
authorLang Hames <lhames@gmail.com>
Fri, 18 Mar 2016 22:44:16 +0000 (22:44 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 18 Mar 2016 22:44:16 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263848 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Error.h

index 3c9bb9a..a05dae1 100644 (file)
@@ -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());