Skip to content

Commit acb30c4

Browse files
committed
ir: use value.Value for Scope of InstCatchPad and InstCleanupPad
Note: this commit is targetted for the v0.4 release. Updates llir#50.
1 parent 09f7b17 commit acb30c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ir/inst_other.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ type InstCatchPad struct {
558558
// Name of local variable associated with the result.
559559
LocalIdent
560560
// Exception scope.
561-
Scope *TermCatchSwitch // TODO: rename to From? rename to Within?
561+
// TODO: rename to From? rename to Within?
562+
Scope value.Value // *ir.TermCatchSwitch
562563
// Exception arguments.
563564
//
564565
// Arg has one of the following underlying types:
@@ -616,7 +617,8 @@ type InstCleanupPad struct {
616617
// Name of local variable associated with the result.
617618
LocalIdent
618619
// Exception scope.
619-
Scope ExceptionScope // TODO: rename to Parent? rename to From?
620+
// TODO: rename to Parent? rename to From?
621+
Scope value.Value // ExceptionScope
620622
// Exception arguments.
621623
//
622624
// Arg has one of the following underlying types:

0 commit comments

Comments
 (0)