From: David Chisnall Date: Mon, 23 May 2011 23:15:11 +0000 (+0000) Subject: Fix bug introduced with r131930. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f0bcc4c3f4a75375a3571e71bffebf603f4ca67;p=clang Fix bug introduced with r131930. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131935 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); } + };