diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-29 19:16:51 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-29 19:16:51 +0000 |
commit | 1cbce125b91cad81c8be3f8bbae8df917211176c (patch) | |
tree | 069a00838664a0b905a83f260f8a2d05ecd4f586 /lib/CodeGen/CGClass.cpp | |
parent | 96eaf2992b5955d1470fc9cce7a96e7e1e3b4ea7 (diff) |
Make emitting a VTT a two-step process, much like emitting a VTable. You first get the address of the VTT, and then pass it to EmitVTTDefinition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index a7b8f65978..7efd2bc807 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -318,7 +318,7 @@ static llvm::Value *GetVTTParameter(CodeGenFunction &CGF, GlobalDecl GD, VTT = CGF.Builder.CreateConstInBoundsGEP1_64(VTT, SubVTTIndex); } else { // We're the complete constructor, so get the VTT by name. - VTT = CGF.CGM.getVTables().getVTT(RD); + VTT = CGF.CGM.getVTables().GetAddrOfVTT(RD); VTT = CGF.Builder.CreateConstInBoundsGEP2_64(VTT, 0, SubVTTIndex); } |