Remove divison-by-zero checks from -ftrapv. These checks were incompatible with
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Nov 2012 22:13:39 +0000 (22:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 Nov 2012 22:13:39 +0000 (22:13 +0000)
commite29c441a89143912091c159d4baa4443e589d607
treeb5c545eb3cc5e4cabfec84f4c3cc0ea7f13c56d6
parent376f82d5d3992f1e4e65296a44560ea11ede94d4
Remove divison-by-zero checks from -ftrapv. These checks were incompatible with
g++'s -ftrapv, failed to call the -ftrapv overflow handler, and are still
available under -fcatch-undefined-behavior.

llvm-svn: 167258
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/CodeGen/trapv.c