Bugfix: in teardown, do not remove parser if it has not been compiled.
This leads to `Smalltalk removeClass: UndefinedObject` which is not
good idea.
--- a/compiler/benchmarks/PPCBenchmark.st Mon Apr 20 13:24:27 2015 +0100
+++ b/compiler/benchmarks/PPCBenchmark.st Mon Apr 20 18:06:31 2015 +0100
@@ -497,7 +497,9 @@
!
teardownJavaSyntaxCompiledC
- parser class removeFromSystem.
+ parser notNil ifTrue:[
+ parser class removeFromSystem.
+ ].
"
size := input inject: 0 into: [:r :e | r + e size ].
Transcript crShow: 'Compiled Grammar time: ', time asString.
@@ -506,7 +508,9 @@
!
teardownSmalltalkGrammarCompiledC
- parser class removeFromSystem.
+ parser notNil ifTrue:[
+ parser class removeFromSystem.
+ ].
"
size := input inject: 0 into: [:r :e | r + e size ].
Transcript crShow: 'Compiled Grammar time: ', time asString.