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.
1 parent 78734ef commit 16124bcCopy full SHA for 16124bc
src/mlir/cxx/mlir/codegen_declarations.cc
@@ -160,6 +160,10 @@ void Codegen::DeclarationVisitor::allocateLocals(ScopeSymbol* block) {
160
allocateLocals(nestedBlock);
161
continue;
162
}
163
+ if (auto params = symbol_cast<FunctionParametersSymbol>(symbol)) {
164
+ allocateLocals(params);
165
+ continue;
166
+ }
167
168
if (auto var = symbol_cast<VariableSymbol>(symbol)) {
169
if (var->isStatic()) continue;
@@ -730,4 +734,4 @@ void Codegen::asmQualifier(AsmQualifierAST* ast) {}
730
734
void Codegen::asmClobber(AsmClobberAST* ast) {}
731
735
732
736
void Codegen::asmGotoLabel(AsmGotoLabelAST* ast) {}
733
-} // namespace cxx
737
+} // namespace cxx
0 commit comments