We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861e889 commit 46b18d8Copy full SHA for 46b18d8
llvm/lib/Support/Caching.cpp
@@ -91,7 +91,7 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef,
91
92
Error commit() override {
93
if (Committed)
94
- return createStringError(std::errc::invalid_argument,
+ return createStringError(make_error_code(std::errc::invalid_argument),
95
Twine("CacheStream already committed."));
96
Committed = true;
97
@@ -147,7 +147,7 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef,
147
148
~CacheStream() {
149
if (!Committed)
150
- report_fatal_error(Twine("CacheStream was not committed.\n");
+ report_fatal_error("CacheStream was not committed.\n");
151
}
152
};
153
0 commit comments