summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-11 22:13:54 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-11 22:13:54 +0000
commit2bb27f53e0010d75cce6e020fe8c40edbb45cfcb (patch)
treed010b1854cb6875206958fe26415a50dbf047a53 /clang/lib/CodeGen/CGExprConstant.cpp
parent6e6ac4712551b60b54708eda7f85ab30f193cddd (diff)
downloadbcm5719-llvm-2bb27f53e0010d75cce6e020fe8c40edbb45cfcb.tar.gz
bcm5719-llvm-2bb27f53e0010d75cce6e020fe8c40edbb45cfcb.zip
Move the vtable builder to CGVtable.cpp, general cleanup.
llvm-svn: 83798
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 0fd765235c9..fc24144f442 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 {
OpenPOWER on IntegriCloud