diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2011-05-23 23:15:11 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2011-05-23 23:15:11 +0000 |
commit | 5f0bcc4c3f4a75375a3571e71bffebf603f4ca67 (patch) | |
tree | 779090588f222ac6090e81e6577dad46ff2871b7 /lib/CodeGen/CGObjCGNU.cpp | |
parent | cd10dec673680fd18a2e5a27646173780c059d32 (diff) |
Fix bug introduced with r131930.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 3 |
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); } + }; |