[X86ISelLowering] Use isPowerof2 instead of rewriting it. NFC.

llvm-svn: 261255
This commit is contained in:
Davide Italiano 2016-02-18 20:43:15 +00:00
parent e39e8530da
commit 440a676136
1 changed files with 1 additions and 1 deletions

View File

@ -21953,7 +21953,7 @@ X86TargetLowering::EmitVAARG64WithCustomInserter(MachineInstr *MI,
// to OverflowDestReg.
if (NeedsAlign) {
// Align the overflow address
assert((Align & (Align-1)) == 0 && "Alignment must be a power of 2");
assert(isPowerOf2_32(Align) && "Alignment must be a power of 2");
unsigned TmpReg = MRI.createVirtualRegister(AddrRegClass);
// aligned_addr = (addr + (align-1)) & ~(align-1)