[llvm-branch-commits] [llvm] 1b55dc9 - Fix buildbot failure caused by D157623

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 27 23:36:58 PDT 2023


Author: duk
Date: 2023-09-28T08:33:30+02:00
New Revision: 1b55dc9d94c3d9cbd933e40ca98c9f94a8b02ef1

URL: https://github.com/llvm/llvm-project/commit/1b55dc9d94c3d9cbd933e40ca98c9f94a8b02ef1
DIFF: https://github.com/llvm/llvm-project/commit/1b55dc9d94c3d9cbd933e40ca98c9f94a8b02ef1.diff

LOG: Fix buildbot failure caused by D157623

GCC doesn't like the implicit conversion here.

(cherry picked from commit f11f90d5f4ebfab2b44bf3c98b2d2162acf81e2c)

Added: 
    

Modified: 
    llvm/tools/llvm-readobj/COFFDumper.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp
index 4caa1c7ff907734..79fef8bc123cd65 100644
--- a/llvm/tools/llvm-readobj/COFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/COFFDumper.cpp
@@ -944,7 +944,7 @@ void COFFDumper::printCOFFLoadConfig() {
   // RVA of each entry in the table. As of writing only a 1-byte extra flag
   // has been defined.
   uint32_t Stride = Tables.GuardFlags >> 28;
-  PrintExtraCB PrintExtra = Stride == 1 ? PrintGuardFlags : nullptr;
+  PrintExtraCB PrintExtra = Stride == 1 ? +PrintGuardFlags : nullptr;
 
   if (Tables.GuardFidTableVA) {
     ListScope LS(W, "GuardFidTable");


        


More information about the llvm-branch-commits mailing list