Be a bit more complete about accumulating SavedThisAdjustments.
llvm-svn: 90723
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 857e661..6fda6a4 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -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;
}