[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)
commit94d6195fdf153d0b62f744544cde2d339d2d05da
treeae7851fdedde0603680f8ce17020b8ad76ef94c8
parent64e1af8eb9b4a3e6e1d34b7740031d1c7831d176
[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.

llvm-svn: 185437
llvm/lib/Support/APFloat.cpp