| Index: tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| diff --git a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| index 6cb6b43544a675ac9f62f925ef55989a6e4e7310..6f93c5e8da127b188f19c2eb0462e343c04f42be 100644
|
| --- a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| +++ b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| @@ -1100,7 +1100,9 @@ class BlinkGCPluginConsumer : public ASTConsumer {
|
| if (DeclaresVirtualMethods(left_most))
|
| return;
|
| if (left_most_base) {
|
| - ++it; // Get the base next to the "safe polymorphic base"
|
| + // Get the base next to the "safe polymorphic base"
|
| + if (it != left_most->bases_end())
|
| + ++it;
|
| if (it != left_most->bases_end()) {
|
| if (CXXRecordDecl* next_base = it->getType()->getAsCXXRecordDecl()) {
|
| if (CXXRecordDecl* next_left_most = GetLeftMostBase(next_base)) {
|
|
|