[llvm] f11f90d - Fix buildbot failure caused by D157623

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 13:39:08 PDT 2023


Author: duk
Date: 2023-08-10T16:34:58-04:00
New Revision: f11f90d5f4ebfab2b44bf3c98b2d2162acf81e2c

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

LOG: Fix buildbot failure caused by D157623

GCC doesn't like the implicit conversion here.

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 4caa1c7ff90773..79fef8bc123cd6 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-commits mailing list