Commit e2b8e211 authored by Jinsong Ji's avatar Jinsong Ji
Browse files

[clang][OpenCL] Fix covered switch warning

-Werror clang build is broken now.

tools/clang/lib/Sema/OpenCLBuiltins.inc:11824:5: error: default label in
switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
    default:

We don't need default now, since all enumeration values are covered.

Reviewed By: svenvh

Differential Revision: https://reviews.llvm.org/D72707
parent a08c0ade
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -751,9 +751,7 @@ static void OCL2Qual(ASTContext &Context, const OpenCLTypeStruct &Ty,
  }

  // End of switch statement.
  OS << "    default:\n"
     << "      llvm_unreachable(\"OpenCL builtin type not handled yet\");\n"
     << "  } // end of switch (Ty.ID)\n\n";
  OS << "  } // end of switch (Ty.ID)\n\n";

  // Step 2.
  // Add ExtVector types if this was a generic type, as the switch statement