changeset 21443:4563ed9308c0

NodeLIRBuilder#createPhiIn: add assertion message.
author Josef Eisl <josef.eisl@jku.at>
date Mon, 18 May 2015 15:38:22 +0200
parents 607ddc0b8d21
children 0ad4c6aa8063
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/NodeLIRBuilder.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/NodeLIRBuilder.java	Mon May 18 14:48:02 2015 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/NodeLIRBuilder.java	Mon May 18 15:38:22 2015 +0200
@@ -202,7 +202,7 @@
             if (value != null) {
                 values.add(value);
             } else {
-                assert isPhiInputFromBackedge(phi, i);
+                assert isPhiInputFromBackedge(phi, i) : String.format("Input %s to phi node %s is not yet available although it is not coming from a loop back edge", node, phi);
             }
         }
         LIRKind derivedKind = LIRKind.merge(values.toArray(new Value[values.size()]));