HomePhabricator

[Sema] Fix a crash on invalid features in multiversioning

Authored by george.burgess.iv on Jan 15 2018, 7:01 PM.

Description

[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. :)

llvm-svn: 322530

Details