Fix an unused variable warning in release builds.

llvm-svn: 238094
This commit is contained in:
Craig Topper 2015-05-23 08:20:33 +00:00
parent 77b9941ab9
commit 37d0d866f4
1 changed files with 1 additions and 0 deletions

View File

@ -4847,6 +4847,7 @@ LSRInstance::LSRInstance(Loop *L, Pass *P)
unsigned NumUsers = 0;
for (const IVStrideUse &U : IU) {
if (++NumUsers > MaxIVUsers) {
(void)U;
DEBUG(dbgs() << "LSR skipping loop, too many IV Users in " << U << "\n");
return;
}