]> granicus.if.org Git - clang/commit
[AST] CommentLexer - Remove (optional) Invalid parameter from getSpelling.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 18 Sep 2019 12:11:16 +0000 (12:11 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 18 Sep 2019 12:11:16 +0000 (12:11 +0000)
commit557742540dfeebdedb0e6583ea0643ee919b8d73
tree3c5ab4517ae42acce062d8b895a45deb05037cd2
parent6803cc1958b56e0bd5a8139fd3252d5042ca37b9
[AST] CommentLexer - Remove (optional) Invalid parameter from getSpelling.

The static analyzer noticed that we were dereferencing it even when the default null value was being used. Further investigation showed that we never explicitly set the parameter so I've just removed it entirely.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372217 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CommentLexer.h
lib/AST/CommentLexer.cpp