From 04746d703b8979f5e1fe144a831e687e4f68e712 Mon Sep 17 00:00:00 2001 From: fw Date: Mon, 25 Apr 2022 12:16:28 -0400 Subject: [PATCH] ast exporter: Remove ampersands from asm operand contraints not doing so could lead to a double-ampersand being emitted, which is not correct see https://github.com/immunant/c2rust/issues/382 --- c2rust-ast-exporter/src/AstExporter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/c2rust-ast-exporter/src/AstExporter.cpp b/c2rust-ast-exporter/src/AstExporter.cpp index 2bb4336aef..30f0cc2782 100644 --- a/c2rust-ast-exporter/src/AstExporter.cpp +++ b/c2rust-ast-exporter/src/AstExporter.cpp @@ -1075,6 +1075,7 @@ class TranslateASTVisitor final case '=': case '+': case '*': + case '&': break; case 'g':