8246027: Minimal fastdebug build broken after JDK-8245801

Added COMPILER2_PRESENT macro

Reviewed-by: shade, thartmann
diff --git a/src/hotspot/share/oops/instanceKlass.cpp b/src/hotspot/share/oops/instanceKlass.cpp
index 4067583..de04086 100644
--- a/src/hotspot/share/oops/instanceKlass.cpp
+++ b/src/hotspot/share/oops/instanceKlass.cpp
@@ -3088,7 +3088,7 @@
 #ifndef PRODUCT
   if (TieredCompilation) {
     nmethod* prev = lookup_osr_nmethod(n->method(), n->osr_entry_bci(), n->comp_level(), true);
-    assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
+    assert(prev == NULL || !prev->is_in_use() COMPILER2_PRESENT(|| StressRecompilation),
            "redundant OSR recompilation detected. memory leak in CodeCache!");
   }
 #endif