< prev index next >

src/share/vm/c1/c1_ValueType.cpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2017, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -135,13 +135,13 @@
     case T_DOUBLE : return doubleType;
     case T_ARRAY  : return arrayType;
     case T_OBJECT : return objectType;
     case T_ADDRESS: return addressType;
     case T_ILLEGAL: return illegalType;
-  }
-  ShouldNotReachHere();
+    default       : ShouldNotReachHere();
   return illegalType;
+  }
 }
 
 
 ValueType* as_ValueType(ciConstant value) {
   switch (value.basic_type()) {

@@ -165,13 +165,13 @@
         else if (obj->is_instance())
           return new InstanceConstant(obj->as_instance());
       }
       return new ObjectConstant(obj);
     }
-  }
-  ShouldNotReachHere();
+    default       : ShouldNotReachHere();
   return illegalType;
+  }
 }
 
 
 BasicType as_BasicType(ValueType* type) {
   switch (type->tag()) {

@@ -182,9 +182,9 @@
     case doubleTag:  return T_DOUBLE;
     case objectTag:  return T_OBJECT;
     case metaDataTag:return T_METADATA;
     case addressTag: return T_ADDRESS;
     case illegalTag: return T_ILLEGAL;
-  }
-  ShouldNotReachHere();
+    default        : ShouldNotReachHere();
   return T_ILLEGAL;
+  }
 }
< prev index next >