diff options
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index c3d8e87f8c1..4b38ce11965 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -62,7 +62,7 @@ void Method::setParent(Module *parent) { } const MethodType *Method::getMethodType() const { - return cast<MethodType>(cast<PointerType>(getType())->getValueType()); + return cast<MethodType>(cast<PointerType>(getType())->getElementType()); } const Type *Method::getReturnType() const { |