Skip to content

Commit 8d12237

Browse files
Icohedroninbelic
andauthored
Specify return type of lambda expression
Co-authored-by: Finn Plummer <[email protected]>
1 parent 6ab5c90 commit 8d12237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILLegalizePass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static void emitMemcpyExpansion(IRBuilder<> &Builder, Value *Dst, Value *Src,
257257
LLVMContext &Ctx = Builder.getContext();
258258
const DataLayout &DL = Builder.GetInsertBlock()->getModule()->getDataLayout();
259259

260-
auto GetArrTyFromVal = [](Value *Val) {
260+
auto GetArrTyFromVal = [](Value *Val) -> ArrayType * {
261261
if (auto *Alloca = dyn_cast<AllocaInst>(Val))
262262
return dyn_cast<ArrayType>(Alloca->getAllocatedType());
263263
if (auto *GlobalVar = dyn_cast<GlobalVariable>(Val))

0 commit comments

Comments
 (0)