Skip to content

Commit 890da53

Browse files
authored
Merge pull request github#16819 from owen-mc/go/remove-dataflowtype-optimizer-bug-workaround
Go: Make DataFlowType a singleton (remove workaround)
2 parents 1e46e43 + d8df38c commit 890da53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ predicate neverSkipInPathGraph(Node n) {
246246

247247
class DataFlowExpr = Expr;
248248

249-
private newtype TDataFlowType =
250-
TTodoDataFlowType() or
251-
TTodoDataFlowType2() // Add a dummy value to prevent bad functionality-induced joins arising from a type of size 1.
249+
private newtype TDataFlowType = TTodoDataFlowType()
252250

253251
class DataFlowType extends TDataFlowType {
254252
/** Gets a textual representation of this element. */

0 commit comments

Comments
 (0)