Skip to content

Commit c333910

Browse files
committed
apply review comment
1 parent b5a0a1c commit c333910

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/phasar/Utils/BitVectorSet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ template <typename T> class BitVectorSet {
177177
}
178178

179179
[[nodiscard]] BitVectorSet<T> setUnion(const BitVectorSet<T> &Other) const {
180-
BitVectorSet<T> Res = Bits.size() < Other.Bits.size() ? Other : *this;
181-
const BitVectorSet &Smaller =
182-
Bits.size() < Other.Bits.size() ? *this : Other;
180+
const bool ThisSetIsSmaller = Bits.size() < Other.Bits.size();
181+
BitVectorSet<T> Res = ThisSetIsSmaller ? Other : *this;
182+
const BitVectorSet &Smaller = ThisSetIsSmaller ? *this : Other;
183183

184184
Res.Bits |= Smaller.Bits;
185185
return Res;

0 commit comments

Comments
 (0)