Mercurial > hg > truffle
comparison src/share/vm/classfile/defaultMethods.cpp @ 11178:d416f67d6f91
fix optimized builds
fixes this error in build:
../../../../src/share/vm/classfile/defaultMethods.cpp:1321:13: error: ?bool covariant_return_type(BasicType, BasicType)? defined but not used [-Werror=unused-function]
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 05 Aug 2013 14:51:58 +0200 |
parents | 50257d6f5aaa |
children | cefad50507d8 |
comparison
equal
deleted
inserted
replaced
11177:d0aeaf72c7bd | 11178:d416f67d6f91 |
---|---|
1314 } | 1314 } |
1315 #endif // ndef PRODUCT | 1315 #endif // ndef PRODUCT |
1316 return target; | 1316 return target; |
1317 } | 1317 } |
1318 | 1318 |
1319 #ifndef PRODUCT | 1319 #ifdef ASSERT |
1320 // Return true is broad type is a covariant return of narrow type | 1320 // Return true is broad type is a covariant return of narrow type |
1321 static bool covariant_return_type(BasicType narrow, BasicType broad) { | 1321 static bool covariant_return_type(BasicType narrow, BasicType broad) { |
1322 if (narrow == broad) { | 1322 if (narrow == broad) { |
1323 return true; | 1323 return true; |
1324 } | 1324 } |
1325 if (broad == T_OBJECT) { | 1325 if (broad == T_OBJECT) { |
1326 return true; | 1326 return true; |
1327 } | 1327 } |
1328 return false; | 1328 return false; |
1329 } | 1329 } |
1330 #endif // ndef PRODUCT | 1330 #endif // def ASSERT |
1331 | 1331 |
1332 static int assemble_redirect( | 1332 static int assemble_redirect( |
1333 BytecodeConstantPool* cp, BytecodeBuffer* buffer, | 1333 BytecodeConstantPool* cp, BytecodeBuffer* buffer, |
1334 Symbol* incoming, Method* target, TRAPS) { | 1334 Symbol* incoming, Method* target, TRAPS) { |
1335 | 1335 |