Integrate LLVM at https://github.com/llvm/llvm-project/commit/a2a4e5aae894
PiperOrigin-RevId: 312076934 Change-Id: I12015eb4ec1278668834ca8a687d290a00eba112
This commit is contained in:
parent
b5ed51fb22
commit
ea113ef6cd
@ -292,7 +292,7 @@ llvm::AllocaInst* EmitAllocaAtFunctionEntryWithCount(llvm::Type* type,
|
|||||||
llvm::AllocaInst* alloca =
|
llvm::AllocaInst* alloca =
|
||||||
b->CreateAlloca(type, element_count, AsStringRef(name));
|
b->CreateAlloca(type, element_count, AsStringRef(name));
|
||||||
if (alignment != 0) {
|
if (alignment != 0) {
|
||||||
alloca->setAlignment(llvm::MaybeAlign(alignment));
|
alloca->setAlignment(llvm::Align(alignment));
|
||||||
}
|
}
|
||||||
return alloca;
|
return alloca;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user