[llvm] 3ea92ea - Fix MFS warning format

Yi Kong via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 00:03:35 PST 2024


Author: Yi Kong
Date: 2024-01-23T17:01:23+09:00
New Revision: 3ea92ea2f9d236569f82825cdba6d59bcc22495c

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

LOG: Fix MFS warning format

WithColor::warning() does not append new line automatically.

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetPassConfig.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 76ba8da547e6b9..46697480db52aa 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -1246,7 +1246,7 @@ void TargetPassConfig::addMachinePasses() {
         // enabled, this may result in performance regression.
         WithColor::warning()
             << "Using AutoFDO without FSDiscriminator for MFS may regress "
-               "performance.";
+               "performance.\n";
       }
     }
     addPass(createMachineFunctionSplitterPass());


        


More information about the llvm-commits mailing list