aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index ff583af7cd..9e6f1ae5bd 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -94,8 +94,9 @@ class LazyRuntimeFunction {
return Function;
}
operator llvm::Function*() {
- return dyn_cast<llvm::Function>((llvm::Constant*)this);
+ return cast<llvm::Function>((llvm::Constant*)*this);
}
+
};