mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
PTX: Fix alignment logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa7579025f
commit
cfab2be391
@ -444,7 +444,7 @@ void PTXAsmPrinter::EmitVariableDeclaration(const GlobalVariable *gv) {
|
||||
unsigned alignment = gv->getAlignment();
|
||||
if (alignment != 0) {
|
||||
decl += ".align ";
|
||||
decl += utostr(std::max(1U, Log2_32(gv->getAlignment())));
|
||||
decl += utostr(gv->getAlignment());
|
||||
decl += " ";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user