Cleanup of OpaquePtr. No functionality changes.
- Some documenation were added. - Usages of OpaquePtr<A>.getAsVal<A>() were replaced by OpaquePtr<A>.get(). - Methods getAs and getAsVal were renamed to getPtrTo and getPtrAs respectively. llvm-svn: 189346
This commit is contained in:
@@ -5670,7 +5670,7 @@ void Sema::CodeCompleteObjCForCollection(Scope *S,
|
||||
Data.ObjCCollection = true;
|
||||
|
||||
if (IterationVar.getAsOpaquePtr()) {
|
||||
DeclGroupRef DG = IterationVar.getAsVal<DeclGroupRef>();
|
||||
DeclGroupRef DG = IterationVar.get();
|
||||
for (DeclGroupRef::iterator I = DG.begin(), End = DG.end(); I != End; ++I) {
|
||||
if (*I)
|
||||
Data.IgnoreDecls.push_back(*I);
|
||||
|
||||
Reference in New Issue
Block a user