Skip to content

Commit 46b18d8

Browse files
committed
Fix build errors.
1 parent 861e889 commit 46b18d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Support/Caching.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef,
9191

9292
Error commit() override {
9393
if (Committed)
94-
return createStringError(std::errc::invalid_argument,
94+
return createStringError(make_error_code(std::errc::invalid_argument),
9595
Twine("CacheStream already committed."));
9696
Committed = true;
9797

@@ -147,7 +147,7 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef,
147147

148148
~CacheStream() {
149149
if (!Committed)
150-
report_fatal_error(Twine("CacheStream was not committed.\n");
150+
report_fatal_error("CacheStream was not committed.\n");
151151
}
152152
};
153153

0 commit comments

Comments
 (0)