Fix:
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; ^ llvm-svn: 105946
This commit is contained in:
parent
62d6f947d5
commit
48eb14dd79
|
@ -713,7 +713,7 @@ VarDecl *VarDecl::getActingDefinition() {
|
||||||
if (Kind != TentativeDefinition)
|
if (Kind != TentativeDefinition)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
VarDecl *LastTentative = false;
|
VarDecl *LastTentative = 0;
|
||||||
VarDecl *First = getFirstDeclaration();
|
VarDecl *First = getFirstDeclaration();
|
||||||
for (redecl_iterator I = First->redecls_begin(), E = First->redecls_end();
|
for (redecl_iterator I = First->redecls_begin(), E = First->redecls_end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
|
|
|
@ -532,7 +532,7 @@ RopePieceBTreeInterior::HandleChildPiece(unsigned i, RopePieceBTreeNode *RHS) {
|
||||||
(getNumChildren()-i-1)*sizeof(Children[0]));
|
(getNumChildren()-i-1)*sizeof(Children[0]));
|
||||||
Children[i+1] = RHS;
|
Children[i+1] = RHS;
|
||||||
++NumChildren;
|
++NumChildren;
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Okay, this node is full. Split it in half, moving WidthFactor children to
|
// Okay, this node is full. Split it in half, moving WidthFactor children to
|
||||||
|
|
Loading…
Reference in New Issue