Skip to content

Commit db3f22a

Browse files
committed
C++: Another small refactor.
1 parent 3d445be commit db3f22a

File tree

1 file changed

+2
-6
lines changed
  • cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal

1 file changed

+2
-6
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImpl.qll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ abstract class DefImpl extends TDefImpl {
232232
*/
233233
abstract predicate isCertain();
234234

235-
/** Gets the value written to the destination variable by this definition. */
236-
abstract Node0Impl getValue();
235+
/** Gets the value written to the destination variable by this definition, if any. */
236+
Node0Impl getValue() { none() }
237237

238238
/** Gets the operand that represents the address of this definition, if any. */
239239
Operand getAddressOperand() { none() }
@@ -324,8 +324,6 @@ abstract private class DefAddressImpl extends DefImpl, TDefAddressImpl {
324324

325325
final override predicate isCertain() { any() }
326326

327-
final override Node0Impl getValue() { none() }
328-
329327
override Cpp::Location getLocation() { result = v.getLocation() }
330328

331329
final override SourceVariable getSourceVariable() {
@@ -653,8 +651,6 @@ class GlobalDefImpl extends DefImpl, TGlobalDefImpl {
653651

654652
override int getIndirection() { result = indirectionIndex }
655653

656-
override Node0Impl getValue() { none() }
657-
658654
override predicate isCertain() { any() }
659655

660656
/**

0 commit comments

Comments
 (0)