src/share/vm/opto/connode.cpp

changeset 3604
9a72c7ece7fb
parent 3202
436b4a3231bf
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/opto/connode.cpp	Mon Feb 20 13:11:08 2012 -0800
     1.2 +++ b/src/share/vm/opto/connode.cpp	Tue Feb 21 11:55:05 2012 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -1051,6 +1051,7 @@
    1.11  //------------------------------Value------------------------------------------
    1.12  const Type *CastX2PNode::Value( PhaseTransform *phase ) const {
    1.13    const Type* t = phase->type(in(1));
    1.14 +  if (t == Type::TOP) return Type::TOP;
    1.15    if (t->base() == Type_X && t->singleton()) {
    1.16      uintptr_t bits = (uintptr_t) t->is_intptr_t()->get_con();
    1.17      if (bits == 0)   return TypePtr::NULL_PTR;
    1.18 @@ -1121,6 +1122,7 @@
    1.19  //------------------------------Value------------------------------------------
    1.20  const Type *CastP2XNode::Value( PhaseTransform *phase ) const {
    1.21    const Type* t = phase->type(in(1));
    1.22 +  if (t == Type::TOP) return Type::TOP;
    1.23    if (t->base() == Type::RawPtr && t->singleton()) {
    1.24      uintptr_t bits = (uintptr_t) t->is_rawptr()->get_con();
    1.25      return TypeX::make(bits);

mercurial