When user code intentionally dereferences null, the alignment of the
authorDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:14:23 +0000 (17:14 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:14:23 +0000 (17:14 +0000)
commit33591af872045194dc00321041affb92810183b4
treeb02247daec28a286915db98fc39eb88fe73c4a0e
parent67d0498d533eedab90e5b6399669c420abbde7c6
When user code intentionally dereferences null, the alignment of the
dereference is theoretically infinite. Put a cap on the computed
alignment to avoid overflow, noticed by John Regehr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp