From e52a41d0a2c1f880c0a99642ead09984448dd848 Mon Sep 17 00:00:00 2001 From: "Zi Xuan Wu (Zeson)" Date: Mon, 28 Nov 2022 13:47:26 +0800 Subject: [PATCH] [CSKY][NFC] Fix the compiling error of CSKYAsmPrinter.cpp emitValueToAlignment API changes the interface to use Align object to wrap integer. --- llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp b/llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp index 24a4212..49e4b1f 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; } -- 2.7.4