[polly] r303386 - [ScopInfo] Fix r302231 to use logical or (||). NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 14:55:37 PDT 2017
Author: meinersbur
Date: Thu May 18 16:55:36 2017
New Revision: 303386
URL: http://llvm.org/viewvc/llvm-project?rev=303386&view=rev
Log:
[ScopInfo] Fix r302231 to use logical or (||). NFC.
In r302231 we mistakenly use bitwise or (|) instead of logical
or (||). This patch fixes that.
Contributed-by: Sameer AbuAsal <sabuasal at codeaurora.org>
Differential Revision: https://reviews.llvm.org/D33337
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=303386&r1=303385&r2=303386&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu May 18 16:55:36 2017
@@ -799,7 +799,7 @@ void MemoryAccess::computeBoundsOnAccess
if (Range.isFullSet())
return;
- if (Range.isWrappedSet() | Range.isSignWrappedSet())
+ if (Range.isWrappedSet() || Range.isSignWrappedSet())
return;
bool isWrapping = Range.isSignWrappedSet();
More information about the llvm-commits
mailing list