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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 11087062: Fix a crash in compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 13490)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -364,7 +364,9 @@
// Consider the compile type of the value.
const AbstractType& compile_type = AbstractType::Handle(CompileType());
- ASSERT(!compile_type.IsMalformed());
+ if (compile_type.IsMalformed()) {
+ return false;
+ }
// If the compile type of the value is void, we are type checking the result
// of a void function, which was checked to be null at the return statement
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698