diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-11 22:33:59 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-11 22:33:59 +0000 |
commit | 18b7f95bdbfbd90c1f8e027225fb2cb8fca7134a (patch) | |
tree | d886bfbc2d6f45db4ea9c2e9b7791265bcd1cc48 /lib/AST/CommentSema.cpp | |
parent | a5ef44ff5d93a3be6ca67782828157a71894cf0c (diff) |
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r-- | lib/AST/CommentSema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp index fa8001b327..72b0af3436 100644 --- a/lib/AST/CommentSema.cpp +++ b/lib/AST/CommentSema.cpp @@ -384,7 +384,7 @@ unsigned Sema::correctTypoInParmVarReference( const ParmVarDecl * const *ParamVars, unsigned NumParams) { const unsigned MaxEditDistance = (Typo.size() + 2) / 3; - unsigned BestPVDIndex = NULL; + unsigned BestPVDIndex = 0; unsigned BestEditDistance = MaxEditDistance + 1; for (unsigned i = 0; i != NumParams; ++i) { const IdentifierInfo *II = ParamVars[i]->getIdentifier(); |