| commit | a19718af5a30a950e7cca8915607dc121cafb635 | [log] [tgz] |
|---|---|---|
| author | Mike Stump <mrs@apple.com> | Wed Aug 05 22:59:44 2009 +0000 |
| committer | Mike Stump <mrs@apple.com> | Wed Aug 05 22:59:44 2009 +0000 |
| tree | bdb623dbd7a3e6f429a83fff7b1a0844fcf89133 | |
| parent | 6d368129c5ec9ecc48525acf244f793f2e37b41f [diff] [blame] |
Refactor some bits. llvm-svn: 78254
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index 375c9ac..5324cc6 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp
@@ -661,7 +661,7 @@ } // Initialize the vtable pointer - if (ClassDecl->isPolymorphic() || ClassDecl->getNumVBases()) { + if (ClassDecl->isDynamicClass()) { if (!LoadOfThis) LoadOfThis = LoadCXXThis(); llvm::Value *VtableField;