[llvm] 09cd849 - Fix build break from D95024

Wenlei He via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 01:04:50 PST 2021


Author: Wenlei He
Date: 2021-02-02T01:01:12-08:00
New Revision: 09cd849fdef2b2d3de2d0b0a5c512100957e0ef6

URL: https://github.com/llvm/llvm-project/commit/09cd849fdef2b2d3de2d0b0a5c512100957e0ef6
DIFF: https://github.com/llvm/llvm-project/commit/09cd849fdef2b2d3de2d0b0a5c512100957e0ef6.diff

LOG: Fix build break from D95024

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


        


More information about the llvm-commits mailing list