@@ -33,7 +33,7 @@ class Node extends TIRDataFlowNode {
33
33
Function getFunction ( ) { none ( ) } // overridden in subclasses
34
34
35
35
/** Gets the type of this node. */
36
- Type getType ( ) { none ( ) } // overridden in subclasses
36
+ IRType getType ( ) { none ( ) } // overridden in subclasses
37
37
38
38
/** Gets the instruction corresponding to this node, if any. */
39
39
Instruction asInstruction ( ) { result = this .( InstructionNode ) .getInstruction ( ) }
@@ -88,7 +88,7 @@ class Node extends TIRDataFlowNode {
88
88
/**
89
89
* Gets an upper bound on the type of this node.
90
90
*/
91
- Type getTypeBound ( ) { result = getType ( ) }
91
+ IRType getTypeBound ( ) { result = getType ( ) }
92
92
93
93
/** Gets the location of this element. */
94
94
Location getLocation ( ) { none ( ) } // overridden by subclasses
@@ -125,7 +125,7 @@ class InstructionNode extends Node, TInstructionNode {
125
125
126
126
override Function getFunction ( ) { result = instr .getEnclosingFunction ( ) }
127
127
128
- override Type getType ( ) { result = instr .getResultType ( ) }
128
+ override IRType getType ( ) { result = instr .getResultIRType ( ) }
129
129
130
130
override Location getLocation ( ) { result = instr .getLocation ( ) }
131
131
@@ -151,7 +151,7 @@ class OperandNode extends Node, TOperandNode {
151
151
152
152
override Function getFunction ( ) { result = op .getUse ( ) .getEnclosingFunction ( ) }
153
153
154
- override Type getType ( ) { result = op .getType ( ) }
154
+ override IRType getType ( ) { result = op .getIRType ( ) }
155
155
156
156
override Location getLocation ( ) { result = op .getLocation ( ) }
157
157
@@ -449,7 +449,7 @@ class VariableNode extends Node, TVariableNode {
449
449
result = v
450
450
}
451
451
452
- override Type getType ( ) { result = v .getType ( ) }
452
+ override IRType getType ( ) { result . getCanonicalLanguageType ( ) . hasUnspecifiedType ( v .getType ( ) , _ ) }
453
453
454
454
override Location getLocation ( ) { result = v .getLocation ( ) }
455
455
0 commit comments