Actually overload the virtual method. This fixes
authorChris Lattner <sabre@nondot.org>
Fri, 17 Dec 2004 17:12:24 +0000 (17:12 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Dec 2004 17:12:24 +0000 (17:12 +0000)
Regression/Analysis/GlobalsModRef/purecse.ll.  Isn't this what the
-Woverload-whatever flag would warn about :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19018 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/GlobalsModRef.cpp

index cde80eec7879a694b111dcac9775400bbe0e5c84..4a97a8f037465d6cd55434b2587de745436230d5 100644 (file)
@@ -104,7 +104,8 @@ namespace {
     /// getModRefBehavior - Return the behavior of the specified function if
     /// called from the specified call site.  The call site may be null in which
     /// case the most generic behavior of this function should be returned.
-    virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS) {
+    virtual ModRefBehavior getModRefBehavior(Function *F, CallSite CS,
+                                         std::vector<PointerAccessInfo> *Info) {
       if (FunctionRecord *FR = getFunctionInfo(F))
         if (FR->FunctionEffect == 0)
           return DoesNotAccessMemory;