Chromium Code Reviews| Index: pkg/compiler/lib/src/dump_info.dart |
| diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
| index 0eac0a9e6b906e2c3822bc568ae886af68d04b83..ab526160688ad33b0d6985c7bbe9e63975de48b5 100644 |
| --- a/pkg/compiler/lib/src/dump_info.dart |
| +++ b/pkg/compiler/lib/src/dump_info.dart |
| @@ -479,12 +479,12 @@ class DumpInfoTask extends CompilerTask { |
| // Track dependencies that come from inlining. |
| for (Element element in inlineMap.keys) { |
| - FunctionInfo functionInfo = infoCollector._elementToInfo[element]; |
| - if (functionInfo == null) continue; |
| - for (Element held in inlineMap[element]) { |
| - Info heldInfo = infoCollector._elementToInfo[held]; |
| - if (heldInfo == null) continue; |
| - functionInfo.uses.add(new DependencyInfo(heldInfo, 'inlined')); |
| + Info outerInfo = infoCollector._elementToInfo[element]; |
|
Siggi Cherem (dart-lang)
2015/08/11 16:16:43
oops - I noticed this error while testing things o
|
| + if (outerInfo == null) continue; |
| + for (Element inlined in inlineMap[element]) { |
| + Info inlinedInfo = infoCollector._elementToInfo[inlined]; |
| + if (inlinedInfo == null) continue; |
| + outerInfo.uses.add(new DependencyInfo(inlinedInfo, 'inlined')); |
| } |
| } |