Skip to content

Commit

Permalink
[Support] Update comment to match actual behavior.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263848 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lhames committed Mar 18, 2016
1 parent 07cfdc8 commit 2bf0347
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/llvm/Support/Error.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ class Error {
/// 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());

Expand Down

0 comments on commit 2bf0347

Please sign in to comment.