OSDN Git Service

"@string = constant i8 0" is a value i8* string of length zero. Analyze that
authorNick Lewycky <nicholas@mxc.ca>
Thu, 20 Oct 2011 00:34:35 +0000 (00:34 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 20 Oct 2011 00:34:35 +0000 (00:34 +0000)
commit0cd0fee91eadcee37d01398e05176e7c63bda2a7
tree31a0f95a4e71949ff31bb21cc0d5d29ce73540a5
parent6690bca623d1f6405b95db5b1760f7ba8436e3fb
"@string = constant i8 0" is a value i8* string of length zero. Analyze that
correctly in GetStringLength, fixing PR11181!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142558 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/SimplifyLibCalls/StrLen.ll