Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created April 15, 2009 22:40
Show Gist options
  • Save evanphx/96077 to your computer and use it in GitHub Desktop.
Save evanphx/96077 to your computer and use it in GitHub Desktop.
Value* pos = ConstantInt::get(Type::Int32Ty, 0);
Value* stack_0 = GetElementPtrInst::Create(stk, pos, "", bb);
new StoreInst(ret, stack_0, false, bb);
Assertion failed: ((Alignment & (Alignment-1)) == 0 && "Alignment must be power of 2!"), function RoundUpAlignment, file /Users/evanphx/svn/llvm/include/llvm/Target/TargetData.h, line 249.
#0 0x957f0e42 in __kill ()
#1 0x957f0e34 in kill$UNIX2003 ()
#2 0x9586323a in raise ()
#3 0x9586f679 in abort ()
#4 0x958643db in __assert_rtn ()
#5 0x00ae7195 in llvm::ComputeMaskedBits ()
#6 0x009f0089 in (anonymous namespace)::InstCombiner::GetOrEnforceKnownAlignment ()
#7 0x00a21919 in (anonymous namespace)::InstCombiner::visitStoreInst ()
#8 0x00a2d433 in llvm::InstVisitor<(anonymous namespace)::InstCombiner, llvm::Instruction*>::visit ()
#9 0x00a22c4f in (anonymous namespace)::InstCombiner::DoOneIteration ()
#10 0x00a2360c in (anonymous namespace)::InstCombiner::runOnFunction ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment