[llvm] 3a65ec4 - Revert "Fix build break from D95024"

Adrian Kuegel via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 02:51:39 PST 2021


Author: Adrian Kuegel
Date: 2021-02-02T11:51:04+01:00
New Revision: 3a65ec4bf96bccafdb3524f116844ebdd789c76a

URL: https://github.com/llvm/llvm-project/commit/3a65ec4bf96bccafdb3524f116844ebdd789c76a
DIFF: https://github.com/llvm/llvm-project/commit/3a65ec4bf96bccafdb3524f116844ebdd789c76a.diff

LOG: Revert "Fix build break from D95024"

This reverts commit 09cd849fdef2b2d3de2d0b0a5c512100957e0ef6.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/SampleProfile.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp
index 4bb8a8198166..7865426dff16 100644
--- a/llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp
@@ -1113,8 +1113,7 @@ bool SampleProfileLoader::tryPromoteAndInlineCandidate(
     }
   } else {
     LLVM_DEBUG(dbgs() << "\nFailed to promote indirect call to "
-                      << Candidate.CalleeSamples->getFuncName() << " because "
-                      << Reason << "\n");
+                      << CalleeFunctionName << " because " << Reason << "\n");
   }
   return false;
 }


        


More information about the llvm-commits mailing list