Use MaybeAlign when setting alignment

PiperOrigin-RevId: 272000548
This commit is contained in:
Jacques Pienaar 2019-09-30 09:36:26 -07:00 committed by A. Unique TensorFlower
parent 1ce524623c
commit a932f0786c
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ def LLVM_AllocaOp :
if ($alignment.hasValue()) {
auto align = $alignment.getValue().getZExtValue();
if (align != 0)
alloca->setAlignment(align);
alloca->setAlignment(llvm::MaybeAlign(align));
}
$res = alloca;
}];