[llvm] e52a41d - [CSKY][NFC] Fix the compiling error of CSKYAsmPrinter.cpp

Zi Xuan Wu via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 27 21:49:27 PST 2022


Author: Zi Xuan Wu (Zeson)
Date: 2022-11-28T13:49:11+08:00
New Revision: e52a41d0a2c1f880c0a99642ead09984448dd848

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

LOG: [CSKY][NFC] Fix the compiling error of CSKYAsmPrinter.cpp

emitValueToAlignment API changes the interface to use Align object to
wrap integer.

Added: 
    

Modified: 
    llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp b/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
index 24a4212de27a9..49e4b1fa7b6a6 100644
--- a/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
+++ b/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
@@ -105,7 +105,7 @@ void CSKYAsmPrinter::emitCustomConstantPool(const MachineInstr *MI) {
 
   // If this is the first entry of the pool, mark it.
   if (!InConstantPool) {
-    OutStreamer->emitValueToAlignment(4);
+    OutStreamer->emitValueToAlignment(Align(4));
     InConstantPool = true;
   }
 


        


More information about the llvm-commits mailing list