summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-10-29 21:21:55 +0000
committerErich Keane <erich.keane@intel.com>2018-10-29 21:21:55 +0000
commitf1d3061ef8ea87c95950287cfc3027fef6772ea4 (patch)
treef1589ccd8fac82961c9003828252a90005b65a67 /llvm/lib/Support/VirtualFileSystem.cpp
parent5cb950200c9f3ec9c74b09e2a44a6613d7bc5302 (diff)
downloadbcm5719-llvm-f1d3061ef8ea87c95950287cfc3027fef6772ea4.tar.gz
bcm5719-llvm-f1d3061ef8ea87c95950287cfc3027fef6772ea4.zip
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
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index c9920197fba..81ac5bbaa9c 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -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) {
OpenPOWER on IntegriCloud