]> granicus.if.org Git - clang/commitdiff
Fix:
authorChris Lattner <sabre@nondot.org>
Mon, 14 Jun 2010 18:31:46 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Jun 2010 18:31:46 +0000 (18:31 +0000)
Decl.cpp:716:28: warning: initialization of pointer of type 'clang::VarDecl *' from literal 'false' [-Wbool-conversions]
  VarDecl *LastTentative = false;
                           ^
RewriteRope.cpp:535:12: warning: initialization of pointer of type '<anonymous>::RopePieceBTreeNode *' from literal 'false'
      [-Wbool-conversions]
    return false;
           ^

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105946 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp
lib/Rewrite/RewriteRope.cpp

index cad7f1f88a85b0e747f0dfa4d0dad85e7013628d..4593c6f0e5cedea2de8f5bbbf755a1b0624cc2ca 100644 (file)
@@ -713,7 +713,7 @@ VarDecl *VarDecl::getActingDefinition() {
   if (Kind != TentativeDefinition)
     return 0;
 
-  VarDecl *LastTentative = false;
+  VarDecl *LastTentative = 0;
   VarDecl *First = getFirstDeclaration();
   for (redecl_iterator I = First->redecls_begin(), E = First->redecls_end();
        I != E; ++I) {
index fdb6fc385ba1c9178c7db609c39734adbfbd66f2..e29092184789132803127a2bad1190c3729e4b5d 100644 (file)
@@ -532,7 +532,7 @@ RopePieceBTreeInterior::HandleChildPiece(unsigned i, RopePieceBTreeNode *RHS) {
               (getNumChildren()-i-1)*sizeof(Children[0]));
     Children[i+1] = RHS;
     ++NumChildren;
-    return false;
+    return 0;
   }
 
   // Okay, this node is full.  Split it in half, moving WidthFactor children to