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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erich Keane
2018-10-29 21:21:55 +00:00
parent 93ce40bd23
commit 0763384459
+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) {