[llvm] 519e0bb - [ctx_prof] Type the stream parameter of PGOCtxProfWriter to match BitstreamWriter's

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 23:27:25 PDT 2024


Author: Mircea Trofin
Date: 2024-06-27T23:27:14-07:00
New Revision: 519e0bb094bd9444b64ac62f2e8192543fdb94b9

URL: https://github.com/llvm/llvm-project/commit/519e0bb094bd9444b64ac62f2e8192543fdb94b9
DIFF: https://github.com/llvm/llvm-project/commit/519e0bb094bd9444b64ac62f2e8192543fdb94b9.diff

LOG: [ctx_prof] Type the stream parameter of PGOCtxProfWriter to match BitstreamWriter's

Added: 
    

Modified: 
    llvm/include/llvm/ProfileData/PGOCtxProfWriter.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h b/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
index f91a695cab274..ecee7a2cfb539 100644
--- a/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
+++ b/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
@@ -67,7 +67,7 @@ class PGOCtxProfileWriter final {
                  const ctx_profile::ContextNode &Node);
 
 public:
-  PGOCtxProfileWriter(raw_fd_stream &Out,
+  PGOCtxProfileWriter(raw_ostream &Out,
                       std::optional<unsigned> VersionOverride = std::nullopt)
       : Writer(Out, 0) {
     Writer.EnterSubblock(PGOCtxProfileBlockIDs::ProfileMetadataBlockID,


        


More information about the llvm-commits mailing list