| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7aa084c commit c99bff9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,6 +618,11 @@ class TranslatedExplicitFieldInitialization extends TranslatedNonDefaultFieldIni | |||
| 618 | 618 | override int getPosition() { result = position } | |
| 619 | 619 | } | |
| 620 | 620 | ||
| 621 | + pragma[nomagic] | ||
| 622 | + private Instruction getCallInstruction(TranslatedDefaultFieldInitialization tdfi) { | ||
| 623 | + result = tdfi.getInstruction(CallTag()) | ||
| 624 | + } | ||
| 625 | + | ||
| 621 | 626 | /** | |
| 622 | 627 | * The IR translation of the initialization of a field from an element of an initializer | |
| 623 | 628 | * list where default initialization is used. | |
@@ -642,7 +647,7 @@ class TranslatedDefaultFieldInitialization extends TranslatedFieldInitialization | |||
| 642 | 647 | ||
| 643 | 648 | override Instruction getInstructionSuccessorInternal(InstructionTag tag, EdgeKind kind) { | |
| 644 | 649 | tag = CallTargetTag() and | |
| 645 | - result = this.getInstruction(CallTag()) | ||
| 650 | + result = getCallInstruction(this) | ||
| 646 | 651 | or | |
| 647 | 652 | tag = CallTag() and | |
| 648 | 653 | result = this.getSideEffects().getFirstInstruction(kind) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments