]> granicus.if.org Git - clang/commitdiff
Fixing a warning in MSVC (this is also a test commit)
authorAaron Ballman <aaron@aaronballman.com>
Sun, 5 Feb 2012 03:08:16 +0000 (03:08 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 5 Feb 2012 03:08:16 +0000 (03:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149806 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/ScopeInfo.h

index 7ee14de2ab9cd2be7d2f6eea7af95b103b44c239..a060015e5a1b87ee1e4a748a23e88f7246eb809d 100644 (file)
@@ -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