changeset 16472:83dce5b6cb41

Truffle: remove needless null check
author Andreas Woess <andreas.woess@jku.at>
date Thu, 10 Jul 2014 20:36:01 +0200
parents 352de9bd8fd5
children f681a647246c
files graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java	Thu Jul 10 19:36:27 2014 +0200
+++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java	Thu Jul 10 20:36:01 2014 +0200
@@ -370,7 +370,7 @@
         Object[] args = originalArguments;
         if (this.profiledArgumentTypesAssumption != null && CompilerDirectives.inCompiledCode() && profiledArgumentTypesAssumption.isValid()) {
             args = CompilerDirectives.unsafeCast(castArrayFixedLength(args, profiledArgumentTypes.length), Object[].class, true, true);
-            if (TruffleArgumentTypeSpeculation.getValue() && this.profiledArgumentTypes != null) {
+            if (TruffleArgumentTypeSpeculation.getValue()) {
                 args = castArguments(args);
             }
         }