[cfe-commits] r77575 - /cfe/trunk/lib/Index/GlobalSelector.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Jul 29 20:42:12 PDT 2009
Author: akirtzidis
Date: Wed Jul 29 22:42:08 2009
New Revision: 77575
URL: http://llvm.org/viewvc/llvm-project?rev=77575&view=rev
Log:
Fix Selector <-> GlobalSelector conversion.
Modified:
cfe/trunk/lib/Index/GlobalSelector.cpp
Modified: cfe/trunk/lib/Index/GlobalSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/GlobalSelector.cpp?rev=77575&r1=77574&r2=77575&view=diff
==============================================================================
--- cfe/trunk/lib/Index/GlobalSelector.cpp (original)
+++ cfe/trunk/lib/Index/GlobalSelector.cpp Wed Jul 29 22:42:08 2009
@@ -34,7 +34,7 @@
Ids.push_back(II);
}
- return AST.Selectors.getSelector(Ids.size(), Ids.data());
+ return AST.Selectors.getSelector(GlobSel.getNumArgs(), Ids.data());
}
/// \brief Get a printable name for debugging purpose.
@@ -62,7 +62,8 @@
Ids.push_back(GlobII);
}
- Selector GlobSel = ProgImpl.getSelectors().getSelector(Ids.size(),Ids.data());
+ Selector GlobSel = ProgImpl.getSelectors().getSelector(Sel.getNumArgs(),
+ Ids.data());
return GlobalSelector(GlobSel.getAsOpaquePtr());
}
More information about the cfe-commits
mailing list