Fix clang test failures from D77454

This commit is contained in:
Eli Friedman 2020-05-14 14:10:06 -07:00
parent 67bb16049a
commit 428d0b6f77
1 changed files with 3 additions and 4 deletions

View File

@ -309,10 +309,9 @@ static void createStoreInstBefore(llvm::Value *value, Address addr,
static llvm::LoadInst *createLoadInstBefore(Address addr, const Twine &name,
llvm::Instruction *beforeInst) {
auto load = new llvm::LoadInst(addr.getElementType(), addr.getPointer(), name,
beforeInst);
load->setAlignment(addr.getAlignment().getAsAlign());
return load;
return new llvm::LoadInst(addr.getElementType(), addr.getPointer(), name,
false, addr.getAlignment().getAsAlign(),
beforeInst);
}
/// All the branch fixups on the EH stack have propagated out past the