]> granicus.if.org Git - clang/commit
Fix cpu-dispatch MV regression caused by r347812
authorErich Keane <erich.keane@intel.com>
Tue, 15 Jan 2019 17:51:09 +0000 (17:51 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 15 Jan 2019 17:51:09 +0000 (17:51 +0000)
commit16fcf99610f36c7c11d20097c070a93b648e19c9
tree939a1d8a91653d5a18c381fbfe76072e1801f88a
parent777055562de6505702ba0c36210491a2436872e0
Fix cpu-dispatch MV regression caused by r347812

r347812 permitted forward declarations for cpu-dispatch functions, which
are occassionally useful as exposition in  header files.  However, this inadvertently
permitted this function to become multiversioned after a usage.  This
patch ensures that the "CausesMV" checks are still run in the
forward-declaration case.

Change-Id: Icb6f975a2d068f088b89e3bbe26cf1d24f5a972c

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