Use FunTy instead of hard-coding Function.
authorDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 20:49:44 +0000 (20:49 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 20:49:44 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101283 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CallSite.h

index f3bfb2d414a4320e7097016000d858e26a8ea773..aa093f5831076e2aa5c6ffff6150d3a6575f019b 100644 (file)
@@ -156,7 +156,7 @@ public:
 
   /// getCaller - Return the caller function for this call site
   ///
-  Function *getCaller() const { return (*this)->getParent()->getParent(); }
+  FunTy *getCaller() const { return (*this)->getParent()->getParent(); }
 
 private:
   /// Returns the operand number of the first argument