[llvm] 22e475f - [NFC] fix warning
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 21:22:18 PDT 2022
Author: Chen Zheng
Date: 2022-08-09T00:22:01-04:00
New Revision: 22e475f5ac237dfebbb3cd2b3306a17d3b2a53ce
URL: https://github.com/llvm/llvm-project/commit/22e475f5ac237dfebbb3cd2b3306a17d3b2a53ce
DIFF: https://github.com/llvm/llvm-project/commit/22e475f5ac237dfebbb3cd2b3306a17d3b2a53ce.diff
LOG: [NFC] fix warning
Added:
Modified:
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
index cb0519c8fe7b..f0c6e83e7e77 100644
--- a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
+++ b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
@@ -313,6 +313,8 @@ void PPCCTRLoops::expandCTRLoops(MachineLoop *ML, MachineInstr *Start,
MachineBasicBlock *Preheader = Start->getParent();
MachineBasicBlock *Exiting = Dec->getParent();
+
+ (void)Preheader;
assert((Preheader && Exiting) &&
"Preheader and exiting should exist for CTR loop!");
More information about the llvm-commits
mailing list