diff src/share/vm/opto/lcm.cpp @ 9596:825cee2cd7a6

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux. Reviewed-by: stuefe, coleenp, roland
author goetz
date Thu, 22 Oct 2015 13:07:10 -0400
parents 10e79692c25e
children a20807e48002
line wrap: on
line diff
--- a/src/share/vm/opto/lcm.cpp	Mon Oct 19 15:03:58 2015 +0200
+++ b/src/share/vm/opto/lcm.cpp	Thu Oct 22 13:07:10 2015 -0400
@@ -806,7 +806,7 @@
   block->insert_node(proj, node_cnt++);
 
   // Select the right register save policy.
-  const char * save_policy;
+  const char *save_policy = NULL;
   switch (op) {
     case Op_CallRuntime:
     case Op_CallLeaf: