aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-11-28 22:09:44 +0000
committerMichael Williamson <mike@zwobble.org>2023-11-28 22:09:44 +0000
commitbc472ebf76c2a7cf2cca4b8f456f4dfe44065d8e (patch)
tree7afd76bb84db2a04543fcdf7c5ee77f336bc9de1 /src/main/java
parent6142a21f197ef7161dd944e9ec0c3db37a6a5a06 (diff)
Clarify variable name
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/llvm/LlvmPatioCodeGen.java8
1 files changed, 4 insertions, 4 deletions
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;
}