[cfe-commits] r90723 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Dec 6 14:33:52 PST 2009
Author: efriedma
Date: Sun Dec 6 16:33:51 2009
New Revision: 90723
URL: http://llvm.org/viewvc/llvm-project?rev=90723&view=rev
Log:
Be a bit more complete about accumulating SavedThisAdjustments.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90723&r1=90722&r2=90723&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sun Dec 6 16:33:51 2009
@@ -838,7 +838,6 @@
if (!isPure && !ThisAdjustment.isEmpty()) {
ThisAdjustments[Index] = ThisAdjustment;
- // FIXME: Might this end up inserting some false adjustments?
SavedThisAdjustments.push_back(std::make_pair(std::make_pair(GD, OGD),
ThisAdjustment));
}
@@ -851,8 +850,11 @@
if (NonVirtualAdjustment) {
ThunkAdjustment ThisAdjustment(NonVirtualAdjustment, 0);
- if (!isPure)
+ if (!isPure) {
ThisAdjustments[Index] = ThisAdjustment;
+ SavedThisAdjustments.push_back(std::make_pair(std::make_pair(GD, OGD),
+ ThisAdjustment));
+ }
}
return true;
}
More information about the cfe-commits
mailing list