Skip to content
Commit cd1dc7f1 authored by Mikael Holmen's avatar Mikael Holmen
Browse files

[AST] Replace assert with llvm_unreachable to silence compiler warning

New code added in ec3060c7 looked like

+  case TemplateName::NameKind::OverloadedTemplate:
+    assert(false && "overloaded templates shouldn't survive to here.");
+  default:

If compiling without asserts we then got a warning about unannotated
fallthrough from the case into the default.

Change the assert into an llvm_unreachable to silence the warning.
parent c6a38957
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment