From bc472ebf76c2a7cf2cca4b8f456f4dfe44065d8e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 28 Nov 2023 22:09:44 +0000 Subject: Clarify variable name --- .../org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java b/src/main/java/org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java index 7bf7839c..31a23d55 100644 --- a/src/main/java/org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java +++ b/src/main/java/org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java @@ -644,7 +644,7 @@ public class LlvmPatioCodeGen { new LlvmVariableGlobal(EXCEPTION_HANDLER_DECLARATION.name()) )); - var popExceptionHandlerInstruction = new LlvmStore( + var restorePreviousExceptionHandlerInstruction = new LlvmStore( LlvmTypes.pointer(LlvmTypes.VOID), previousExceptionHandler, new LlvmVariableGlobal(EXCEPTION_HANDLER_DECLARATION.name()) @@ -710,7 +710,7 @@ public class LlvmPatioCodeGen { catchBodyStartLabel, catchBodyEndLabel, List.of( - popExceptionHandlerInstruction + restorePreviousExceptionHandlerInstruction ), catchClause.body() )); @@ -730,7 +730,7 @@ public class LlvmPatioCodeGen { )); context = context.startBasicBlock(rethrowStartLabel); - context = context.addInstruction(popExceptionHandlerInstruction); + context = context.addInstruction(restorePreviousExceptionHandlerInstruction); context = context.addInstruction(RETHROW_DECLARATION.call( Optional.empty(), List.of(setjmpValue) @@ -743,7 +743,7 @@ public class LlvmPatioCodeGen { context ); - context = context.addInstruction(popExceptionHandlerInstruction); + context = context.addInstruction(restorePreviousExceptionHandlerInstruction); yield context; } -- cgit v1.2.3