diff src/share/vm/shark/sharkCompiler.cpp @ 7643:3ac7d10a6572

Merge with hsx25/hotspot.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 31 Jan 2013 15:42:25 +0100
parents 291ffc492eb6 c095a7f289aa
children 096c224171c4
line wrap: on
line diff
--- a/src/share/vm/shark/sharkCompiler.cpp	Thu Jan 31 11:32:14 2013 +0100
+++ b/src/share/vm/shark/sharkCompiler.cpp	Thu Jan 31 15:42:25 2013 +0100
@@ -185,6 +185,9 @@
 
   // Build the LLVM IR for the method
   Function *function = SharkFunction::build(env, &builder, flow, name);
+  if (env->failing()) {
+    return;
+  }
 
   // Generate native code.  It's unpleasant that we have to drop into
   // the VM to do this -- it blocks safepoints -- but I can't see any