diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-13 04:39:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 04:39:46 +0000 |
commit | 8e26d19cb343ccb211fd45294a10f61b5a562b94 (patch) | |
tree | 60511df43f96b1e3c21dfd1a978eab943ab94135 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4581a4f03ac5428ca80f390c97b0c224f7996154 (diff) | |
download | bcm5719-llvm-8e26d19cb343ccb211fd45294a10f61b5a562b94.tar.gz bcm5719-llvm-8e26d19cb343ccb211fd45294a10f61b5a562b94.zip |
fix assert in AsmPrinter::EmitGlobalConstantLargeInt to match reality.
llvm-svn: 93293
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 3d85a486cea..96019bf7326 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1246,8 +1246,7 @@ void AsmPrinter::EmitGlobalConstantLargeInt(const ConstantInt *CI, unsigned AddrSpace) { const TargetData *TD = TM.getTargetData(); unsigned BitWidth = CI->getBitWidth(); - assert(isPowerOf2_32(BitWidth) && - "Non-power-of-2-sized integers not handled!"); + assert((BitWidth & 63) == 0 && "only support multiples of 64-bits"); // 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 |