mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
PTX: Fix case where printed alignment could be 0
llvm-svn: 140624
This commit is contained in:
parent
6510b463d3
commit
c74cdce7e0
@ -480,7 +480,7 @@ void PTXAsmPrinter::EmitVariableDeclaration(const GlobalVariable *gv) {
|
||||
unsigned alignment = gv->getAlignment();
|
||||
if (alignment != 0) {
|
||||
decl += ".align ";
|
||||
decl += utostr(Log2_32(gv->getAlignment()));
|
||||
decl += utostr(std::max(1U, Log2_32(gv->getAlignment())));
|
||||
decl += " ";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user