mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 17:21:16 +00: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:
1 parent
5cb950200c
commit
f1d3061ef8
1 file changed
+1
-1
@@ -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