From 9d262fb8b4514326c672b39e83cf565879f1d50e Mon Sep 17 00:00:00 2001 From: Hernan Ponce de Leon Date: Wed, 6 Dec 2023 14:28:33 +0100 Subject: [PATCH] Fix returnAttribute rule in llvm grammar Signed-off-by: Hernan Ponce de Leon --- dartagnan/src/main/antlr4/LLVMIR.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dartagnan/src/main/antlr4/LLVMIR.g4 b/dartagnan/src/main/antlr4/LLVMIR.g4 index 1ef44da4d1..79c9168ee3 100644 --- a/dartagnan/src/main/antlr4/LLVMIR.g4 +++ b/dartagnan/src/main/antlr4/LLVMIR.g4 @@ -104,7 +104,7 @@ gc: 'gc' StringLit; prefix: 'prefix' typeConst; prologue: 'prologue' typeConst; personality: 'personality' typeConst; -returnAttribute: returnAttr | dereferenceable; +returnAttribute: returnAttr | dereferenceable | align; funcBody: '{' basicBlock+ useListOrder* '}'; basicBlock: LabelIdent? instruction* terminator; instruction: // Instructions producing values.