[cfe-commits] r131935 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp

David Chisnall csdavec at swan.ac.uk
Mon May 23 16:15:11 PDT 2011


Author: theraven
Date: Mon May 23 18:15:11 2011
New Revision: 131935

URL: http://llvm.org/viewvc/llvm-project?rev=131935&view=rev
Log:
Fix bug introduced with r131930.


Modified:
    cfe/trunk/lib/CodeGen/CGObjCGNU.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=131935&r1=131934&r2=131935&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Mon May 23 18:15:11 2011
@@ -94,8 +94,9 @@
      return Function;
    }
    operator llvm::Function*() {
-     return dyn_cast<llvm::Function>((llvm::Constant*)this);
+     return cast<llvm::Function>((llvm::Constant*)*this);
    }
+
 };
 
 





More information about the cfe-commits mailing list