Skip to content

Commit 79cd99d

Browse files
authored
Update for parseIR LLVM API change (#1808)
Update for llvm-project commit df1a74ac3c64 ("[IR] Support importing modules with invalid data layouts.", 2023-01-12).
1 parent ced105f commit 79cd99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SPIRV/SPIRVLowerSaddWithOverflow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void SPIRVLowerSaddWithOverflowBase::visitIntrinsicInst(CallInst &I) {
9494
auto MB = MemoryBuffer::getMemBuffer(LLVMSaddWithOverflow);
9595
auto SaddWithOverflowModule =
9696
parseIR(MB->getMemBufferRef(), Err, *Context,
97-
[&](StringRef) { return Mod->getDataLayoutStr(); });
97+
[&](StringRef, StringRef) { return Mod->getDataLayoutStr(); });
9898
if (!SaddWithOverflowModule) {
9999
std::string ErrMsg;
100100
raw_string_ostream ErrStream(ErrMsg);

0 commit comments

Comments
 (0)