Skip to content

Commit c131400

Browse files
committed
Handle xray
1 parent 3131a58 commit c131400

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Driver/XRayArgs.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
105105
for (const auto &P : BundleParts) {
106106
// TODO: Automate the generation of the string case table.
107107
auto Valid = llvm::StringSwitch<bool>(P)
108-
.Cases("none", "all", "function", "function-entry",
109-
"function-exit", "custom", true)
108+
.Cases({"none", "all", "function", "function-entry",
109+
"function-exit", "custom"},
110+
true)
110111
.Default(false);
111112

112113
if (!Valid) {

0 commit comments

Comments
 (0)