summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-08-04 21:54:19 +0000
committerKevin Enderby <enderby@apple.com>2016-08-04 21:54:19 +0000
commit2c182700752920eb1952846e10fd79ecfbfbbf3b (patch)
tree86085aced2ee6bc577456bc88129cf5720b885b2 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent61c16142b4d52b0e62db1e39d21093a56cd5f886 (diff)
downloadbcm5719-llvm-2c182700752920eb1952846e10fd79ecfbfbbf3b.tar.gz
bcm5719-llvm-2c182700752920eb1952846e10fd79ecfbfbbf3b.zip
Clean up the logic of the Archive::Child::Child() with an assert to know Err is not a nullptr
when we are pointed at real data. David Blaikie pointed out some odd logic in the case the Err value was a nullptr and Lang Hames suggested it could be cleaned it up with an assert to know that Err is not a nullptr when we are pointed at real data. As only in the case of constructing the sentinel value by pointing it at null data is Err is permitted to be a nullptr, since no error could occur in that case. With this change the testing for “if (Err)” is removed from the constructor’s logic and *Err is used directly without any check after the assert(). llvm-svn: 277776
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud