diff options
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/ErrorOr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index fba67054cb..bc376e97ae 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -203,7 +203,7 @@ private: } else { // Get other's error. HasError = true; - new (getErrorStorage()) error_code(Other); + new (getErrorStorage()) error_code(Other.getError()); } } |