PiperOrigin-RevId: 312076934
Change-Id: I12015eb4ec1278668834ca8a687d290a00eba112
This commit is contained in:
A. Unique TensorFlower 2020-05-18 07:41:37 -07:00 committed by TensorFlower Gardener
parent b5ed51fb22
commit ea113ef6cd

View File

@ -292,7 +292,7 @@ llvm::AllocaInst* EmitAllocaAtFunctionEntryWithCount(llvm::Type* type,
llvm::AllocaInst* alloca =
b->CreateAlloca(type, element_count, AsStringRef(name));
if (alignment != 0) {
alloca->setAlignment(llvm::MaybeAlign(alignment));
alloca->setAlignment(llvm::Align(alignment));
}
return alloca;
}