r187474 - Fixing an unused variable warning.
Aaron Ballman
aaron at aaronballman.com
Tue Jul 30 19:20:22 PDT 2013
Author: aaronballman
Date: Tue Jul 30 21:20:22 2013
New Revision: 187474
URL: http://llvm.org/viewvc/llvm-project?rev=187474&view=rev
Log:
Fixing an unused variable warning.
Modified:
cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp?rev=187474&r1=187473&r2=187474&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Tue Jul 30 21:20:22 2013
@@ -894,14 +894,11 @@ void EmitClangAttrClass(RecordKeeper &Re
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();
}
More information about the cfe-commits
mailing list