Skip to content

Commit

Permalink
Fix handling of inline asm (#337)
Browse files Browse the repository at this point in the history
* Add failing test

* Fixes #333

* Fix test

* Mark test and failing rebuild
  • Loading branch information
frabert authored Apr 29, 2024
1 parent 4aad6b0 commit 22f65d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AST/IRToASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ void IRToASTVisitor::VisitFunctionDecl(llvm::Function &func) {
}

auto fdecl{decl->getAsFunction()};
fdecl->setParams(params);
fdecl->setParams(iasm_params);

tudecl->addDecl(decl);
}
Expand Down
1 change: 1 addition & 0 deletions tests/tools/decomp/failing-rebuild/issue_333_inline_asm.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int main(int argc, char *argv[]) { __asm__(""); }

0 comments on commit 22f65d6

Please sign in to comment.