aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 215f5e9bba..a5ceace445 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -58,6 +58,8 @@ static inline void addPass(PassManager &PM, Pass *P) {
// Keep track of how many passes we made for -stopAfterNPasses
++NumPassesCreated;
+ } else {
+ delete P; // We don't want this pass to run, just delete it now
}
}