projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
846a2dc
)
Make canonicalization of ImmutableSetRef::asImmutableSet() semi-explicit.
author
Ted Kremenek
<kremenek@apple.com>
Sun, 2 Oct 2011 01:47:07 +0000
(
01:47
+0000)
committer
Ted Kremenek
<kremenek@apple.com>
Sun, 2 Oct 2011 01:47:07 +0000
(
01:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140959
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/ImmutableSet.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableSet.h
b/include/llvm/ADT/ImmutableSet.h
index 8e2fea565879021abf33c4f259bdbaf2c0c6a3ff..d597a7c9be72c5734b79b2219af4faf567c43c80 100644
(file)
--- a/
include/llvm/ADT/ImmutableSet.h
+++ b/
include/llvm/ADT/ImmutableSet.h
@@
-1145,8
+1145,9
@@
public:
return Root ? Root->contains(V) : false;
}
- ImmutableSet<ValT> asImmutableSet() const {
- return ImmutableSet<ValT>(Factory->getCanonicalTree(Root));
+ ImmutableSet<ValT> asImmutableSet(bool canonicalize = true) const {
+ return ImmutableSet<ValT>(canonicalize ?
+ Factory->getCanonicalTree(Root) : Root);
}
TreeTy *getRootWithoutRetain() const {