projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5979dff
)
fix assert in AsmPrinter::EmitGlobalConstantLargeInt to match reality.
author
Chris Lattner
<sabre@nondot.org>
Wed, 13 Jan 2010 04:39:46 +0000
(
04:39
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 13 Jan 2010 04:39:46 +0000
(
04:39
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93293
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 3d85a486ceaf13a0b7bb2b1c367b043bce61c469..96019bf7326c38ab33bb5808606c0cc869bf0e3f 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
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