Do GEP offset calculations with unsigned math rather than signed math
authorDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:11:36 +0000 (17:11 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:11:36 +0000 (17:11 +0000)
commit67d0498d533eedab90e5b6399669c420abbde7c6
treeb70ccc4024b6cf6a4ef88c9fb0749f33bc479e89
parentdc7a235363166a61e81986c534fe11ceb44109fc
Do GEP offset calculations with unsigned math rather than signed math
to avoid undefined behavior on overflow, noticed by John Regehr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetData.cpp