mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-08-25 14:10:28 -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 llvm-svn: 345543
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