mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: Extend final IRBlock
This commit is contained in:
@@ -269,7 +269,9 @@ module IRCfg implements BB::CfgSig<Language::Location> {
|
||||
|
||||
class SuccessorType = EdgeKind;
|
||||
|
||||
class BasicBlock extends IRBlock {
|
||||
final private class FinalIRBlock = IRBlock;
|
||||
|
||||
class BasicBlock extends FinalIRBlock {
|
||||
ControlFlowNode getNode(int i) { result = this.getInstruction(i) }
|
||||
|
||||
ControlFlowNode getLastNode() { result = super.getLastInstruction() }
|
||||
|
||||
@@ -269,7 +269,9 @@ module IRCfg implements BB::CfgSig<Language::Location> {
|
||||
|
||||
class SuccessorType = EdgeKind;
|
||||
|
||||
class BasicBlock extends IRBlock {
|
||||
final private class FinalIRBlock = IRBlock;
|
||||
|
||||
class BasicBlock extends FinalIRBlock {
|
||||
ControlFlowNode getNode(int i) { result = this.getInstruction(i) }
|
||||
|
||||
ControlFlowNode getLastNode() { result = super.getLastInstruction() }
|
||||
|
||||
@@ -269,7 +269,9 @@ module IRCfg implements BB::CfgSig<Language::Location> {
|
||||
|
||||
class SuccessorType = EdgeKind;
|
||||
|
||||
class BasicBlock extends IRBlock {
|
||||
final private class FinalIRBlock = IRBlock;
|
||||
|
||||
class BasicBlock extends FinalIRBlock {
|
||||
ControlFlowNode getNode(int i) { result = this.getInstruction(i) }
|
||||
|
||||
ControlFlowNode getLastNode() { result = super.getLastInstruction() }
|
||||
|
||||
Reference in New Issue
Block a user