Skip to content

Commit

Permalink
Add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Dec 17, 2024
1 parent 63013f6 commit 92533e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import de.fraunhofer.aisec.cpg.passes.configuration.DependsOn
* A [Pass] which uses a simple logic to determine constant values and mark unreachable code regions
* by setting the [EvaluationOrder.unreachable] property to true.
*/
@DependsOn(ControlFlowSensitiveDFGPass::class)
@DependsOn(ControlFlowSensitiveDFGPass::class, softDependency = true)
class UnreachableEOGPass(ctx: TranslationContext) : TranslationUnitPass(ctx) {
override fun cleanup() {
// Nothing to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class PointsToPass(ctx: TranslationContext) : EOGStarterPass(ctx, orderDependenc
if (derefSource) {
this.getValues(node.arguments[v.argumentIndex])
.forEach { r.addAll(this.getValues(it)) }
} else {
} else if (v.argumentIndex < node.arguments.size) {
r.add(node.arguments[v.argumentIndex])
}
} else r.add(v)
Expand Down

0 comments on commit 92533e6

Please sign in to comment.