Use the correct variable.

This commit is contained in:
Vassil Vassilev 2014-07-29 12:20:05 +02:00 committed by sftnight
parent f65296420e
commit 01c090cf62

View File

@ -25,7 +25,7 @@ namespace cling {
std::vector<clang::Decl*> decls;
for (DeclGroupRef::iterator J = DCI.m_DGR.begin(),
JE = DCI.m_DGR.end(); J != JE; ++J) {
if (!ED->hasAttr<AnnotateAttr>())
if (!(*J)->hasAttr<AnnotateAttr>())
continue;
if (EnumDecl* ED = dyn_cast<EnumDecl>(*J))