aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-10-08 18:05:09 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-10-08 19:04:29 +0100
commitdf9ae806bba497e9fd76ff0da74c1ab8ab08d75b (patch)
treec249dc854e75d8d9d6a770eb1f488de7ac5a5c22 /llvm/lib/CodeGen/BasicBlockSections.cpp
parent3cc1f1fc1d97952136185f4eafb827694875de17 (diff)
downloadllvm-df9ae806bba497e9fd76ff0da74c1ab8ab08d75b.zip
llvm-df9ae806bba497e9fd76ff0da74c1ab8ab08d75b.tar.gz
llvm-df9ae806bba497e9fd76ff0da74c1ab8ab08d75b.tar.bz2
[AVR] Fix null dereference warning. NFCI.
We were checking if the ConstantSDNode was null but then immediately dereferencing it afterward - fold these both into a single check. Use the APInt::ult() helper as well. Found by clang static analyzer.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions