================
@@ -662,6 +709,14 @@ void addTemplateSpecialization(TemplateInfo *I,
   I->Specialization.emplace(std::move(TSI));
 }
 
+template <typename T> static void addConstraint(T I, ConstraintInfo &&C) {
+  llvm::errs() << "invalid container for constraint info";
+  exit(1);
+}
----------------
ilovepi wrote:

Well, I was going to leave a comment about this, but I see there's already 4 
occurrences. These should probably use exit on err, but that should all be 
handled separately.

I assume this could be rewritten w/ some `constexpr enable_if` magic to be 
equivalent, but 🤷 most of this code was written when the LLVM codebase was 
still c++14-only. 

https://github.com/llvm/llvm-project/pull/144430
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to