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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 987133002: Temporary workaround for bug 22732. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 654cebac035bdb3d7fd3f4e3962b78ea206645a6..70bef1fb317d1bafcf63cf2f011b0e0dbbcf0870 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -1020,11 +1020,13 @@ class SsaDeadCodeEliminator extends HGraphVisitor implements OptimizationPhase {
if (current is HGoto) {
successor = current.block.successors.single;
} else if (current is HIf) {
+ // TODO(paulberry): This variable works around dartbug.com/22732
+ HIf currentHIf = current;
// We also leave HIf nodes in place when one branch is dead.
HInstruction condition = current.inputs.first;
if (condition is HConstant) {
bool isTrue = condition.constant.isTrue;
- successor = isTrue ? current.thenBlock : current.elseBlock;
+ successor = isTrue ? currentHIf.thenBlock : currentHIf.elseBlock;
assert(!analyzer.isDeadBlock(successor));
}
}
« 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