[llvm] r263297 - Initialize CalleeInfo to fix bot after r263275

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 13:34:45 PST 2016


Author: tejohnson
Date: Fri Mar 11 15:34:45 2016
New Revision: 263297

URL: http://llvm.org/viewvc/llvm-project?rev=263297&view=rev
Log:
Initialize CalleeInfo to fix bot after r263275

Hopefully will fix garbage output in
http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/6901

Modified:
    llvm/trunk/include/llvm/IR/FunctionInfo.h

Modified: llvm/trunk/include/llvm/IR/FunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/FunctionInfo.h?rev=263297&r1=263296&r2=263297&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/FunctionInfo.h (original)
+++ llvm/trunk/include/llvm/IR/FunctionInfo.h Fri Mar 11 15:34:45 2016
@@ -34,7 +34,7 @@ struct CalleeInfo {
   /// The cumulative profile count of calls to corresponding function
   /// (if using PGO, otherwise 0).
   uint64_t ProfileCount;
-  CalleeInfo() = default;
+  CalleeInfo() : CallsiteCount(0), ProfileCount(0) {}
   CalleeInfo(unsigned CallsiteCount, uint64_t ProfileCount)
       : CallsiteCount(CallsiteCount), ProfileCount(ProfileCount) {}
   CalleeInfo &operator+=(uint64_t RHSProfileCount) {




More information about the llvm-commits mailing list