Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: runtime/vm/flow_graph.cc

Issue 2528763002: VM: [Kernel] Relax assertion in SSA construction. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index fdf1d2e189ac9dd7ce2bb4aa13b307d312e64f07..4eb78fa1c45086e2b268e62b565709f38d45ee23 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -1154,8 +1154,9 @@ void FlowGraph::RenameRecursive(BlockEntryInstr* block_entry,
}
ASSERT((drop->value() != NULL) || !drop->HasTemp());
} else {
- ASSERT(definition->HasTemp());
- result = GetConstant(constant->value());
+ if (definition->HasTemp()) {
+ result = GetConstant(constant->value());
+ }
}
// Update expression stack or remove from graph.
if (definition->HasTemp()) {
« no previous file with comments | « no previous file | runtime/vm/kernel_reader.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698