Fix a bug that was found by building clang with -fsanitize.
authorNadav Rotem <nrotem@apple.com>
Wed, 19 Dec 2012 20:47:04 +0000 (20:47 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 19 Dec 2012 20:47:04 +0000 (20:47 +0000)
commit521396ab378ba3578cdfdda7422ba8bd79ffee40
tree530c3931cf83f1d80da522347b9a5385c7bf479b
parent83ccac71ff5458597f53c502b048052586ad4d41
Fix a bug that was found by building clang with -fsanitize.
I introduced it in r166785. PR14291.

If TD is unavailable use getScalarSizeInBits, but don't optimize
pointers or vectors of pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp