Add error handling in getInt.
authorPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 28 Nov 2012 12:13:12 +0000 (12:13 +0000)
committerPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 28 Nov 2012 12:13:12 +0000 (12:13 +0000)
commit37d5be777c81393c54cae8b26241ebaca2ed9e27
treef280bb536f3573d0285188efb29aaeedc1bf1cf0
parent1416edc30adbd53b2be863f7f3de56de4a4c9d0a
Add error handling in getInt.

Accordingly, update a testcase with a broken datalayout string.

Also, we never parse negative numbers, because '-' is used as a
separator. Therefore, use unsigned as result type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/DataLayout.cpp
test/Transforms/GVN/crash-no-aa.ll