[APFloat] Swap an early out check so we do not dereference str.end().
authorMichael Gottesman <mgottesman@apple.com>
Tue, 2 Jul 2013 15:50:05 +0000 (15:50 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Tue, 2 Jul 2013 15:50:05 +0000 (15:50 +0000)
commitc93bee09ac0ebfad4efd7a7d195ce586d9ad50ed
tree4a0b16bc119707067812187e68f943aaa37a4e63
parenta3863ea2dacafc925a8272ebf9884fc64bef686c
[APFloat] Swap an early out check so we do not dereference str.end().

Originally if D.firstSigDigit == str.end(), we will have already dereferenced
D.firstSigDigit in the first predicate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp