Skip to content

Commit a134cac

Browse files
nirvdrumansalond
authored andcommitted
Add missing insert call for lazy node pattern.
(cherry picked from commit a116ae3)
1 parent 70232f3 commit a134cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/language/exceptions/SetExceptionVariableNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void setLastException(VirtualFrame frame, DynamicObject exception) {
4848
private GetCurrentRubyThreadNode getCurrentThreadNode() {
4949
if (getCurrentThreadNode == null) {
5050
CompilerDirectives.transferToInterpreterAndInvalidate();
51-
getCurrentThreadNode = GetCurrentRubyThreadNodeGen.create();
51+
getCurrentThreadNode = insert(GetCurrentRubyThreadNodeGen.create());
5252
}
5353
return getCurrentThreadNode;
5454
}

0 commit comments

Comments
 (0)