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:
ba3d808
)
Revert "[FileCheck] Use std::optional in FileCheck.cpp (NFC)"
author
Kazu Hirata
<kazu@google.com>
Sat, 10 Dec 2022 17:28:07 +0000
(09:28 -0800)
committer
Kazu Hirata
<kazu@google.com>
Sat, 10 Dec 2022 17:28:07 +0000
(09:28 -0800)
This reverts commit
f555ec57cc01181ce09c802194b6f572f7a3f78a
.
One build failure has been reported:
https://lab.llvm.org/buildbot/#/builders/67/builds/9785/steps/6/logs/stdio
llvm/lib/FileCheck/FileCheck.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/FileCheck/FileCheck.cpp
b/llvm/lib/FileCheck/FileCheck.cpp
index
ce66543
..
e2cc6dc
100644
(file)
--- a/
llvm/lib/FileCheck/FileCheck.cpp
+++ b/
llvm/lib/FileCheck/FileCheck.cpp
@@
-22,7
+22,6
@@
#include "llvm/Support/FormatVariadic.h"
#include <cstdint>
#include <list>
-#include <optional>
#include <set>
#include <tuple>
#include <utility>
@@
-696,7
+695,7
@@
Pattern::parseCallExpr(StringRef &Expr, StringRef FuncName,
Expr = Expr.ltrim(SpaceChars);
assert(Expr.startswith("("));
- auto OptFunc = StringSwitch<
std::o
ptional<binop_eval_t>>(FuncName)
+ auto OptFunc = StringSwitch<
O
ptional<binop_eval_t>>(FuncName)
.Case("add", operator+)
.Case("div", operator/)
.Case("max", max)