Print the method that makes an instruction invalid
authorChris Lattner <sabre@nondot.org>
Thu, 8 Nov 2001 19:29:51 +0000 (19:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Nov 2001 19:29:51 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/FindUnsafePointerTypes.cpp

index 48e474f6b23fc29196f3ce282852dad67581d016..d47e1d7f6ad579906ab0e60066c66f8adc9ec18e 100644 (file)
@@ -62,7 +62,7 @@ bool FindUnsafePointerTypes::doPerMethodWork(Method *Meth) {
         if (PrintFailures) {
           CachedWriter CW(M->getParent(), cerr);
           CW << "FindUnsafePointerTypes: Type '" << ITy
-             << "' marked unsafe by:\n" << Inst;
+             << "' marked unsafe in '" << Meth->getName() << "' by:\n" << Inst;
         }
       }
   }