Skip to content

Commit a9583a1

Browse files
committed
[LoopUnswitch] Pacify compiler warnings.
Attempt to fix some compiler warnings on some bots after b8c81fa.
1 parent b8c81fa commit a9583a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Scalar/LoopUnswitch.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
//===----------------------------------------------------------------------===//
2727

2828
#include "llvm/ADT/DenseMap.h"
29+
#include "llvm/ADT/STLExtras.h"
2930
#include "llvm/ADT/SmallPtrSet.h"
3031
#include "llvm/ADT/SmallVector.h"
3132
#include "llvm/ADT/Statistic.h"
@@ -809,12 +810,12 @@ static Optional<IVConditionInfo> hasPartialIVCondition(Loop *L, MemorySSA &MSSA,
809810
if (L->contains(Succ))
810811
continue;
811812

812-
Info.PathIsNoop &= empty(Succ->phis()) &&
813+
Info.PathIsNoop &= llvm::empty(Succ->phis()) &&
813814
(!Info.ExitForPath || Info.ExitForPath == Succ);
814815
if (!Info.PathIsNoop)
815816
break;
816-
assert(!Info.ExitForPath || Info.ExitForPath == Succ &&
817-
"cannot have multiple exit blocks");
817+
assert((!Info.ExitForPath || Info.ExitForPath == Succ) &&
818+
"cannot have multiple exit blocks");
818819
Info.ExitForPath = Succ;
819820
}
820821
}

0 commit comments

Comments
 (0)