]> granicus.if.org Git - clang/commit
Prevent unreachable when checking invalid multiversion decls.
authorErich Keane <erich.keane@intel.com>
Fri, 4 Jan 2019 15:24:06 +0000 (15:24 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 4 Jan 2019 15:24:06 +0000 (15:24 +0000)
commit4e3dd793d75b1710618a091fa8a037c5a75c2525
tree98d9e0f981b2e619ca7d23575265855f5a08c392
parentdfe36d72bcb3226bc633eafaf7487612b2e75f0e
Prevent unreachable when checking invalid multiversion decls.

CPUSpecifc/CPUDispatch call resolution assumed that all declarations
that would be passed are valid, however this was an invalid assumption.
This patch deals with those situations by making the valid version take
priority.  Note that the checked ordering is arbitrary, since both are
replaced by calls to the resolver later.

Change-Id: I7ff2ec88c55a721d51bc1f39ea1a1fe242b4e45f

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/Sema/attr-cpuspecific.c