OSDN Git Service

Make llvm.objectsize more conservative with null
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 9 Jul 2018 22:21:16 +0000 (22:21 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 9 Jul 2018 22:21:16 +0000 (22:21 +0000)
commit401e29e8b781adda1eb2b4ab925217365b19b0be
treeee0d74b430ee754d752457f7bf09306f85295e9d
parentae0f1dc9280e16721377e9c910075751b0feb0bb
Make llvm.objectsize more conservative with null

In non-zero address spaces, we were reporting that an object at `null`
always occupies zero bytes. This is incorrect in many cases, so just
return `unknown` in those cases for now.

Differential Revision: https://reviews.llvm.org/D48860

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336611 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
lib/Analysis/MemoryBuiltins.cpp
test/Transforms/CodeGenPrepare/basic.ll
test/Transforms/InstCombine/objsize.ll