mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Fix a very strange assertion message, patch by Christopher Lamb
CVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36267 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae1998f32c
commit
2e3ab5726d
@ -35,7 +35,7 @@ namespace llvm {
|
|||||||
// aligned to the specified power of two boundary.
|
// aligned to the specified power of two boundary.
|
||||||
void align(unsigned Boundary) {
|
void align(unsigned Boundary) {
|
||||||
assert(Boundary && (Boundary & (Boundary - 1)) == 0 &&
|
assert(Boundary && (Boundary & (Boundary - 1)) == 0 &&
|
||||||
"Must alitypedef std::vector<unsigned char> DataBuffer;gn to 2^k boundary");
|
"Must align to 2^k boundary");
|
||||||
size_t Size = Output.size();
|
size_t Size = Output.size();
|
||||||
|
|
||||||
if (Size & (Boundary - 1)) {
|
if (Size & (Boundary - 1)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user