mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
This ammends the fix commited in https://reviews.llvm.org/D109770 /
6cf6fa6ef1
Comparing the number of template parameter lists with the number of
template parameters is obviously wrong.
Even then, the number of parameters being the same doesn't mean the
templates are compatible.
This change compares if the template parameters are actually equivalent.
This fixes the crash, but I am not sure what is the design and intention
here, this openmp template support looks too fragile.
The added test case still doesn't work, but at least we don't crash now.