Add parens to fix incorrect assert check.

&& has higher priority than ||, so this assert works really oddly. Add
parens to match the programmer's intent.

Change-Id: I3abe1361ee0694462190c5015779db664012f3d4
llvm-svn: 345543
This commit is contained in:
Erich Keane
2018-10-29 21:21:55 +00:00
parent 2958962895
commit 2baf66654c
+1 -1
View File
@@ -2118,7 +2118,7 @@ std::error_code VFSFromYamlDirIterImpl::incrementExternal() {
}
std::error_code VFSFromYamlDirIterImpl::incrementContent(bool IsFirstTime) {
assert(IsFirstTime || Current != End && "cannot iterate past end");
assert((IsFirstTime || Current != End) && "cannot iterate past end");
if (!IsFirstTime)
++Current;
while (Current != End) {