Skip to content

Commit 9d90754

Browse files
committed
[ImportVerilog] Use initializer list for Cases, fix deprecation.
See (and PR linked): llvm/llvm-project#165119
1 parent b809bf8 commit 9d90754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Conversion/ImportVerilog/Expressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ struct RvalueExprVisitor : public ExprVisitor {
12361236
// LTLDialect; treat them there instead.
12371237
bool isAssertionCall =
12381238
llvm::StringSwitch<bool>(subroutine.name)
1239-
.Cases("$rose", "$fell", "$stable", "$past", true)
1239+
.Cases({"$rose", "$fell", "$stable", "$past"}, true)
12401240
.Default(false);
12411241

12421242
if (isAssertionCall)

0 commit comments

Comments
 (0)