================
@@ -399,7 +409,7 @@ static MoveType determineMoveType(const FunctionDecl 
*FuncDecl) {
   if (FuncDecl->getName() == "forward")
     return MoveType::Forward;
 
-  llvm_unreachable("Invalid move type");
+  return MoveType::Invalidation;
----------------
vbvictor wrote:

To keep ~sanity~ _soundness_ check, I think we should pass 
`InvalidationFunctions` to `determineMoveType` and write another `if 
(llvm::is_contained(FuncDecl->getName(), InvalidationFunctions))` if IIRC that 
`is_contained` does exist.

https://github.com/llvm/llvm-project/pull/170346
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to