summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commita19718af5a30a950e7cca8915607dc121cafb635 (patch)
treebdb623dbd7a3e6f429a83fff7b1a0844fcf89133 /clang/lib/CodeGen
parent6d368129c5ec9ecc48525acf244f793f2e37b41f (diff)
downloadbcm5719-llvm-a19718af5a30a950e7cca8915607dc121cafb635.tar.gz
bcm5719-llvm-a19718af5a30a950e7cca8915607dc121cafb635.zip
Refactor some bits.
llvm-svn: 78254
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 375c9ac40e4..5324cc622f7 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud