aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-06-19 09:05:14 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-06-19 09:05:14 +0000
commite1db1cf0c38ba5cd2bb52318f6d2b004f73cadfe (patch)
tree4459e6e52c460a0ea5ae16af5fe67cc77b4f06eb /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent36896bfd0c562cc7f8e479d13c40993a206d4f58 (diff)
downloadllvm-e1db1cf0c38ba5cd2bb52318f6d2b004f73cadfe.zip
llvm-e1db1cf0c38ba5cd2bb52318f6d2b004f73cadfe.tar.gz
llvm-e1db1cf0c38ba5cd2bb52318f6d2b004f73cadfe.tar.bz2
Add test cases for false positives on -Wnull-arithmetic from Richard
Trieu, and fix them by checking for array and function types as well as pointer types. I've added a predicate method on Type to bundle together the logic we're using here: isPointerLikeType(). I'd welcome better names for this predicate, this is the best I came up with. It's implemented as a switch to be a touch lighter weight than all the chained isa<...> casts that would result otherwise. llvm-svn: 133383
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions