From 5f0bcc4c3f4a75375a3571e71bffebf603f4ca67 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 23 May 2011 23:15:11 +0000 Subject: [PATCH] Fix bug introduced with r131930. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131935 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGObjCGNU.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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::Constant*)this); + return cast((llvm::Constant*)*this); } + }; -- 2.50.1