Skip to content

Commit 2f1ffa9

Browse files
[llvm] Forward-declare ICFLoopSafetyInfo (NFC)
LoopUtils.h needs ICFLoopSafetyInfo but relies on a forward declaration of ICFLoopSafetyInfo in IVDescriptors.h. This patch adds a forward declaration right in LoopUtils.h. While we are at it, this patch removes the one in IVDescriptors.h, where it is unnecessary.
1 parent d60b74c commit 2f1ffa9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

llvm/include/llvm/Analysis/IVDescriptors.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class PredicatedScalarEvolution;
3232
class ScalarEvolution;
3333
class SCEV;
3434
class DominatorTree;
35-
class ICFLoopSafetyInfo;
3635

3736
/// These are the kinds of recurrences that we support.
3837
enum class RecurKind {

llvm/include/llvm/Transforms/Utils/LoopUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class AliasSet;
2727
class AliasSetTracker;
2828
class BasicBlock;
2929
class BlockFrequencyInfo;
30+
class ICFLoopSafetyInfo;
3031
class IRBuilderBase;
3132
class Loop;
3233
class LoopInfo;

0 commit comments

Comments
 (0)