Fixing an unused variable warning.

llvm-svn: 187474
This commit is contained in:
Aaron Ballman 2013-07-31 02:20:22 +00:00
parent 56d404281f
commit 080cad730a
1 changed files with 1 additions and 4 deletions

View File

@ -894,14 +894,11 @@ void EmitClangAttrClass(RecordKeeper &Records, raw_ostream &OS) {
const std::vector<Record *> Supers = R.getSuperClasses();
assert(!Supers.empty() && "Forgot to specify a superclass for the attr");
bool IsTargetSpecific = false;
std::string SuperName;
for (std::vector<Record *>::const_reverse_iterator I = Supers.rbegin(),
E = Supers.rend(); I != E; ++I) {
const Record &R = **I;
if (R.getName() == "TargetSpecificAttr")
IsTargetSpecific = true;
else if (SuperName.empty())
if (R.getName() != "TargetSpecificAttr" && SuperName.empty())
SuperName = R.getName();
}