Skip to content

Commit 59f6185

Browse files
committed
analyzer: fix missing return in compatible_epath_p
gcc/analyzer/ChangeLog: * diagnostic-manager.cc (compatible_epath_p): Fix missing return. Signed-off-by: David Malcolm <[email protected]>
1 parent 8878f7a commit 59f6185

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gcc/analyzer/diagnostic-manager.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,14 @@ compatible_epath_p (const exploded_path *lhs_path,
966966
/* A superedge was found for only one of the two paths. */
967967
return false;
968968
}
969+
970+
/* A superedge was found for only one of the two paths. */
971+
if (lhs_eedge_idx >= 0 || rhs_eedge_idx >= 0)
972+
return false;
973+
974+
/* Both paths were drained up entirely.
975+
No discriminant was found. */
976+
return true;
969977
}
970978

971979

0 commit comments

Comments
 (0)