summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ErrorOr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/ErrorOr.h')
-rw-r--r--include/llvm/Support/ErrorOr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h
index f3ac305fe7..6832e3df2f 100644
--- a/include/llvm/Support/ErrorOr.h
+++ b/include/llvm/Support/ErrorOr.h
@@ -34,7 +34,7 @@ struct ErrorHolderBase {
ErrorHolderBase() : RefCount(1) {}
- void aquire() {
+ void acquire() {
++RefCount;
}
@@ -308,7 +308,7 @@ private:
// Get other's error.
Error = Other.Error;
HasError = true;
- Error->aquire();
+ Error->acquire();
}
}
@@ -437,7 +437,7 @@ public:
ErrorOr(const ErrorOr &Other) : Error(0, 0) {
Error = Other.Error;
if (Other.Error.getPointer()->Error) {
- Error.getPointer()->aquire();
+ Error.getPointer()->acquire();
}
}