mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
fix assert in AsmPrinter::EmitGlobalConstantLargeInt to match reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5979dfff8e
commit
38c2b0a99c
@ -1246,8 +1246,7 @@ void AsmPrinter::EmitGlobalConstantLargeInt(const ConstantInt *CI,
|
|||||||
unsigned AddrSpace) {
|
unsigned AddrSpace) {
|
||||||
const TargetData *TD = TM.getTargetData();
|
const TargetData *TD = TM.getTargetData();
|
||||||
unsigned BitWidth = CI->getBitWidth();
|
unsigned BitWidth = CI->getBitWidth();
|
||||||
assert(isPowerOf2_32(BitWidth) &&
|
assert((BitWidth & 63) == 0 && "only support multiples of 64-bits");
|
||||||
"Non-power-of-2-sized integers not handled!");
|
|
||||||
|
|
||||||
// We don't expect assemblers to support integer data directives
|
// We don't expect assemblers to support integer data directives
|
||||||
// for more than 64 bits, so we emit the data in at most 64-bit
|
// for more than 64 bits, so we emit the data in at most 64-bit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user