]> granicus.if.org Git - clang/commit
[Sema] Fix a crash on invalid features in multiversioning
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 16 Jan 2018 03:01:50 +0000 (03:01 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 16 Jan 2018 03:01:50 +0000 (03:01 +0000)
commit5a18d2f1fc25509646440ab21963781c7e9b494c
treea07de6810a445d3bc309d022d829d8ba92a347f4
parent2b1d36bee69eaf8897af89d53630804f9f66badd
[Sema] Fix a crash on invalid features in multiversioning

We were trying to emit a diag::err_bad_multiversion_option diagnostic,
which expects an int as its first argument, with a string argument. As
it happens, the string `Feature` that was causing this was shadowing an
int `Feature` from the surrounding scope. :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322530 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/attr-target-mv.cpp