summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-02-25 00:43:36 +0000
committerVedant Kumar <vsk@apple.com>2017-02-25 00:43:36 +0000
commit82ee16beb8fe91b1f78416470faf71922e5efbeb (patch)
treeac6df3f00982ee9525dbdce02bd8dd270eb062fb /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent65d2e7f72c6ff9bd6954c31dd5f2757c8c27b88b (diff)
downloadbcm5719-llvm-82ee16beb8fe91b1f78416470faf71922e5efbeb.tar.gz
bcm5719-llvm-82ee16beb8fe91b1f78416470faf71922e5efbeb.zip
[ubsan] Omit superflous overflow checks for promoted arithmetic (PR20193)
C requires the operands of arithmetic expressions to be promoted if their types are smaller than an int. Ubsan emits overflow checks when this sort of type promotion occurs, even if there is no way to actually get an overflow with the promoted type. This patch teaches clang how to omit the superflous overflow checks (addressing PR20193). Testing: check-clang and check-ubsan. Differential Revision: https://reviews.llvm.org/D29369 llvm-svn: 296213
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud