aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-18 12:36:29 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-18 12:36:44 +0100
commit3b3509b3cba272c98d2235a8664ae9625ac729f8 (patch)
tree3aff64f50c1ebab8ce2d017f3d73b8697b0c31eb /clang/lib/Frontend/CompilerInvocation.cpp
parentb9ca73e1a8fd0c018b0b3eb313163da2b4ca4e09 (diff)
downloadllvm-3b3509b3cba272c98d2235a8664ae9625ac729f8.zip
llvm-3b3509b3cba272c98d2235a8664ae9625ac729f8.tar.gz
llvm-3b3509b3cba272c98d2235a8664ae9625ac729f8.tar.bz2
[Sema] haveSameParameterTypes - replace repeated isNull() test with assertions
As reported on https://pvs-studio.com/en/blog/posts/cpp/0771/ (Snippet 2) - (and mentioned on rGdc4259d5a38409) we are repeating the T1.isNull() check instead of checking T2.isNull() as well, and at this point neither should be null - so we're better off with an assertion. Differential Revision: https://reviews.llvm.org/D107347
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions