r204744 - MS ABI: Mark direct virtual bases as visted when building vtable paths
Timur Iskhodzhanov
timurrrr at google.com
Wed Mar 26 01:30:44 PDT 2014
2014-03-25 22:33 GMT+04:00 Reid Kleckner <reid at kleckner.net>:
> --- cfe/trunk/lib/AST/VTableBuilder.cpp (original)
> +++ cfe/trunk/lib/AST/VTableBuilder.cpp Tue Mar 25 13:33:27 2014
> @@ -3210,6 +3210,8 @@ void MicrosoftVTableContext::computeVTab
> // morally virtual bases.
> for (const auto &I : Base->vbases())
> VBasesSeen.insert(I.getType()->getAsCXXRecordDecl());
> + if (I.isVirtual())
> + VBasesSeen.insert(Base);
> }
>
Wow, that revealed that we have a variable name shadowing going on here!
Fixed in r204787.
I also kinda think the if() is more logical/readable to go before for().
WDYT?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140326/cb7843f3/attachment.html>
More information about the cfe-commits
mailing list