Fix run-test 083 regression.
Change-Id: I5c2d0dfa46a7e6cfa05f8186b97d546a3a268c50
diff --git a/src/compiler_llvm/runtime_support_builder.cc b/src/compiler_llvm/runtime_support_builder.cc
index c1643ec..5a56890 100644
--- a/src/compiler_llvm/runtime_support_builder.cc
+++ b/src/compiler_llvm/runtime_support_builder.cc
@@ -153,10 +153,13 @@
irb_.SetInsertPoint(basic_block);
Value* thread = func->arg_begin();
- Value* suspend_count = irb_.LoadFromObjectOffset(thread,
- Thread::SuspendCountOffset().Int32Value(),
- irb_.getJIntTy(),
- kTBAARuntimeInfo);
+ llvm::LoadInst* suspend_count =
+ irb_.LoadFromObjectOffset(thread,
+ Thread::SuspendCountOffset().Int32Value(),
+ irb_.getJIntTy(),
+ kTBAARuntimeInfo);
+ suspend_count->setAlignment(4U);
+ suspend_count->setAtomic(Unordered, CrossThread);
Value* is_suspend = irb_.CreateICmpNE(suspend_count, irb_.getJInt(0));
BasicBlock* basic_block_suspend = BasicBlock::Create(context_, "suspend", func);