projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef481d
)
Error: Replace value() with operator*
author
Fangrui Song
<i@maskray.me>
Fri, 16 Dec 2022 20:31:47 +0000
(20:31 +0000)
committer
Fangrui Song
<i@maskray.me>
Fri, 16 Dec 2022 20:31:47 +0000
(20:31 +0000)
Some older macOS libc++ report:
error: 'value' is unavailable: introduced in macOS 10.13
llvm/include/llvm/Support/Error.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/Error.h
b/llvm/include/llvm/Support/Error.h
index
d821ab5
..
1305c9b
100644
(file)
--- a/
llvm/include/llvm/Support/Error.h
+++ b/
llvm/include/llvm/Support/Error.h
@@
-1277,7
+1277,7
@@
public:
assert(Err && "Trying to log after takeError().");
OS << "'" << FileName << "': ";
if (Line)
- OS << "line " <<
Line.value()
<< ": ";
+ OS << "line " <<
*Line
<< ": ";
Err->log(OS);
}