[cfe-commits] r137803 - /cfe/trunk/lib/Frontend/ASTUnit.cpp

NAKAMURA Takumi geek4civic at gmail.com
Tue Aug 16 18:46:16 PDT 2011


Author: chapuni
Date: Tue Aug 16 20:46:16 2011
New Revision: 137803

URL: http://llvm.org/viewvc/llvm-project?rev=137803&view=rev
Log:
[MSVC] Fix a warning C4334 "'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)".

Modified:
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=137803&r1=137802&r2=137803&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Tue Aug 16 20:46:16 2011
@@ -2063,8 +2063,7 @@
   bool AddedResult = false;
   unsigned InContexts  
     = (Context.getKind() == CodeCompletionContext::CCC_Recovery? NormalContexts
-                                            : (1 << (Context.getKind() - 1)));
-
+                                        : (1ULL << (Context.getKind() - 1)));
   // Contains the set of names that are hidden by "local" completion results.
   llvm::StringSet<llvm::BumpPtrAllocator> HiddenNames;
   typedef CodeCompletionResult Result;





More information about the cfe-commits mailing list