mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-26 16:05:54 +00:00
[Support] Update comment to match actual behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07cfdc8cd0
commit
2bf0347835
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user