diff --git a/lib/AST/IRToASTVisitor.cpp b/lib/AST/IRToASTVisitor.cpp index 1dea0a47..324878c7 100755 --- a/lib/AST/IRToASTVisitor.cpp +++ b/lib/AST/IRToASTVisitor.cpp @@ -1236,7 +1236,7 @@ void IRToASTVisitor::VisitFunctionDecl(llvm::Function &func) { } auto fdecl{decl->getAsFunction()}; - fdecl->setParams(params); + fdecl->setParams(iasm_params); tudecl->addDecl(decl); } diff --git a/tests/tools/decomp/failing-rebuild/issue_333_inline_asm.c b/tests/tools/decomp/failing-rebuild/issue_333_inline_asm.c new file mode 100644 index 00000000..9d7bd3db --- /dev/null +++ b/tests/tools/decomp/failing-rebuild/issue_333_inline_asm.c @@ -0,0 +1 @@ +int main(int argc, char *argv[]) { __asm__(""); }