aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-08-05 22:59:44 +0000
committerMike Stump <mrs@apple.com>2009-08-05 22:59:44 +0000
commitb502d839994cc3828573bd9ea472418e3536f415 (patch)
treeb0baf8b37063bd767ac4844c326358d8c837cabb /lib/CodeGen/CGCXX.cpp
parent26899b0cac15372ef76486e26769351c2cbb98d0 (diff)
Refactor some bits.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r--lib/CodeGen/CGCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index 375c9ac40e..5324cc622f 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -661,7 +661,7 @@ void CodeGenFunction::EmitCtorPrologue(const CXXConstructorDecl *CD) {
}
// Initialize the vtable pointer
- if (ClassDecl->isPolymorphic() || ClassDecl->getNumVBases()) {
+ if (ClassDecl->isDynamicClass()) {
if (!LoadOfThis)
LoadOfThis = LoadCXXThis();
llvm::Value *VtableField;