-fwrapv should turn off the inbounds markers from geps used for pointer
commit2cb4222338669a3e70b546ef264fbd5d3f96aef5
authorChris Lattner <sabre@nondot.org>
Tue, 1 Mar 2011 00:03:48 +0000 (1 00:03 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Mar 2011 00:03:48 +0000 (1 00:03 +0000)
tree4dbb163717c40652dfcfdc341eae32107af14f5f
parent5f791bb44417ecc201ed57a85d0fe02001d8a615
-fwrapv should turn off the inbounds markers from geps used for pointer
arithmetic.  This is part of PR9256, it would be great if someone else
wired up -fno-strict-overflow in the driver to -fwrapv.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126718 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/integer-overflow.c