src/hotspot/share/ci/ciStreams.cpp
changeset 50971 34872a21af82
parent 49449 ef5d5d343e2a
child 53546 63eb7e38ce84
--- a/src/hotspot/share/ci/ciStreams.cpp	Thu Jun 28 10:51:02 2018 -0700
+++ b/src/hotspot/share/ci/ciStreams.cpp	Mon Jul 02 10:09:01 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -255,8 +255,7 @@
 // constant.
 constantTag ciBytecodeStream::get_constant_pool_tag(int index) const {
   VM_ENTRY_MARK;
-  BasicType bt = _method->get_Method()->constants()->basic_type_for_constant_at(index);
-  return constantTag::ofBasicType(bt);
+  return _method->get_Method()->constants()->constant_tag_at(index);
 }
 
 // ------------------------------------------------------------------