From f73aaba0d817f6c2fe50295b1e027951e77ae233 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 17 Aug 2013 13:37:27 +0200 Subject: [PATCH] PetScan::extract(StmtRange, bool, bool): break out early on NULL scop Commit 61fc3b8 (fix handling of compound statements with initial partial scop when autodetecting, Tue Jul 30 11:19:56 2013 +0200) introduced a test on one of the members of scop, which breaks down if scop has become NULL due to some (parsing) error. Signed-off-by: Sven Verdoolaege --- scan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.cc b/scan.cc index 494f239..9bb8293 100644 --- a/scan.cc +++ b/scan.cc @@ -4909,7 +4909,7 @@ struct pet_scop *PetScan::extract(StmtRange stmt_range, bool block, scop = skip.add(scop, j); - if (partial) + if (partial || !scop) break; } -- 2.11.4.GIT