Reapply "[OpenMP][FIX] Verify compatible types for declare variant calls" D88384
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 29 Sep 2020 13:08:02 +0000 (08:08 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 7 Oct 2020 05:06:51 +0000 (00:06 -0500)
commit5a3f6bfe8a71b94728597aee12a4c36949d5f6af
tree71f3a5e8feb0b739bbc4a85a58500feab1a00d82
parented46e84c7aaffd847656ac559acb06089096ec33
Reapply "[OpenMP][FIX] Verify compatible types for declare variant calls" D88384

This reapplies D88384 with the minor modification that an assertion was
changed to a regular conditional and graceful exit from
ASTContext::mergeTypes.
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/AST/ast-dump-openmp-begin-declare-variant_template_3.cpp [new file with mode: 0644]