From 2bb27f53e0010d75cce6e020fe8c40edbb45cfcb Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 11 Oct 2009 22:13:54 +0000 Subject: Move the vtable builder to CGVtable.cpp, general cleanup. llvm-svn: 83798 --- clang/lib/CodeGen/CGExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGExprConstant.cpp') diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 0fd765235c96..fc24144f4421 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -413,7 +413,7 @@ public: // Get the function pointer (or index if this is a virtual function). if (MD->isVirtual()) { - uint64_t Index = CGM.GetVtableIndex(MD->getCanonicalDecl()); + int64_t Index = CGM.getVtableInfo().getMethodVtableIndex(MD); Values[0] = llvm::ConstantInt::get(PtrDiffTy, Index + 1); } else { -- cgit v1.2.3