Skip to content

Commit 489dbe1

Browse files
author
AndreiDiaconu1
committed
Fixed errors
Added some new classes for built in operations that for the moment have no effect (added to remove errors)
1 parent 05ae04d commit 489dbe1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ cached private module Cached {
277277
result = element.getPrimaryInstructionForSideEffect(tag)
278278
)
279279
}
280+
281+
cached Language::BuiltInOperation getInstructionBuiltInOperation(Instruction instr) {
282+
none()
283+
}
280284
}
281285

282286
import CachedForDebugging

csharp/ql/src/semmle/code/csharp/ir/internal/IRCSharpLanguage.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ private newtype TClassDerivation =
1717
derived.getABaseType() = base
1818
}
1919

20+
private newtype TBuiltInOperation =
21+
NoOp()
22+
23+
class BuiltInOperation extends TBuiltInOperation {
24+
string toString() {
25+
result = "BuiltInOp"
26+
}
27+
}
28+
2029
class ClassDerivation extends MkClassDerivation {
2130
Class baseClass;
2231
Class derivedClass;

0 commit comments

Comments
 (0)