Commit 9911aca4 by Takuto Ikuta

Revert "Fix for unused-lambda-capture warning"

This reverts commit d0d9928f. Reason for revert: This broke build, NumElements needs to be captured in debug build Change-Id: If5d8579a48229af9ff5a75dc7baeb544b195b746 Reviewed-on: https://swiftshader-review.googlesource.com/c/22288Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarTakuto Ikuta <tikuta@google.com>
parent d0d9928f
......@@ -203,7 +203,6 @@ else()
set_cpp_flag("-Werror=reorder")
set_cpp_flag("-Werror=sign-compare")
set_cpp_flag("-Werror=missing-braces")
set_cpp_flag("-Werror=unused-lambda-capture")
set_cpp_flag("-fno-exceptions")
# Remove xor, and, or and friends from the list of keywords, they are used
......
......@@ -530,8 +530,8 @@ protected:
for (SizeT I = 0; I < NumElements; ++I) {
auto *Index = Ctx->getConstantInt32(I);
auto makeExtractThunk = [this, Index](Operand *Src) {
return [this, Index, Src]() {
auto makeExtractThunk = [this, Index, NumElements](Operand *Src) {
return [this, Index, NumElements, Src]() {
assert(typeNumElements(Src->getType()) == NumElements);
const auto ElementTy = typeElementType(Src->getType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment