]> granicus.if.org Git - clang/commit
Use SmallPtrSet instead of SmallSet in places where we iterate over the set.
authorCraig Topper <craig.topper@intel.com>
Sat, 9 Jun 2018 00:30:45 +0000 (00:30 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 9 Jun 2018 00:30:45 +0000 (00:30 +0000)
commit07451f99826a362ce71558950877aaf5e2323aef
tree529d5f6d474f32443eda6ea50ccc68c8f0a83391
parentaa824e5dbd4bc914a4f47eeaf3f1827f7ae8b413
Use SmallPtrSet instead of SmallSet in places where we iterate over the set.

SmallSet forwards to SmallPtrSet for pointer types. SmallPtrSet supports iteration, but a normal SmallSet doesn't. So if it wasn't for the forwarding, this wouldn't work.

These places were found by hiding the begin/end methods in the SmallSet forwarding.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
lib/Sema/SemaDeclCXX.cpp