changeset 11961:091f0dd7aac0

8160942: Unused code in GraphKit::record_profiled_receiver_for_speculation Summary: Fixed logic error; locally scoped 'maybe_null' w/initialiser is unused/dead Reviewed-by: kvn Contributed-by: patric.hedlin@oracle.com
author neliasso
date Wed, 13 Jul 2016 12:10:22 +0200
parents cfbdc930bf01
children 25478ff8e163
files src/share/vm/opto/graphKit.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp	Tue Aug 30 09:01:33 2016 +0000
+++ b/src/share/vm/opto/graphKit.cpp	Wed Jul 13 12:10:22 2016 +0200
@@ -2172,10 +2172,9 @@
       java_bc() == Bytecodes::_instanceof ||
       java_bc() == Bytecodes::_aastore) {
     ciProfileData* data = method()->method_data()->bci_to_data(bci());
-    bool maybe_null = data == NULL ? true : data->as_BitData()->null_seen();
+    maybe_null = data == NULL ? true : data->as_BitData()->null_seen();
   }
   return record_profile_for_speculation(n, exact_kls, maybe_null);
-  return n;
 }
 
 /**