mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user