From: Aaron Ballman Date: Sun, 5 Feb 2012 03:08:16 +0000 (+0000) Subject: Fixing a warning in MSVC (this is also a test commit) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b11a7fd2f2204c7aadd74f870c98667d461997f5;p=clang Fixing a warning in MSVC (this is also a test commit) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149806 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h index 7ee14de2ab..a060015e5a 100644 --- a/include/clang/Sema/ScopeInfo.h +++ b/include/clang/Sema/ScopeInfo.h @@ -224,7 +224,7 @@ public: /// \brief Determine whether the given variable has been captured. bool isCaptured(VarDecl *Var) const { - return CaptureMap.count(Var) > 0; + return CaptureMap.count(Var); } /// \brief Retrieve the capture of the given variable, if it has been