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.
TupleValue
1 parent a0aa318 commit b4a1fc6Copy full SHA for b4a1fc6
lib/ConstExtract/ConstExtract.cpp
@@ -151,7 +151,9 @@ static std::shared_ptr<CompileTimeValue> extractCompileTimeValue(Expr *expr) {
151
std::vector<std::shared_ptr<TupleValue>> tuples;
152
for (auto elementExpr : dictionaryExpr->getElements()) {
153
auto elementValue = extractCompileTimeValue(elementExpr);
154
- tuples.push_back(std::static_pointer_cast<TupleValue>(elementValue));
+ if (isa<TupleValue>(elementValue.get())) {
155
+ tuples.push_back(std::static_pointer_cast<TupleValue>(elementValue));
156
+ }
157
}
158
return std::make_shared<DictionaryValue>(tuples);
159
0 commit comments