diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-12-19 23:33:16 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-12-19 23:33:16 +0000 |
commit | 22c651c5770572641eaa16423b19e867f5f61d6b (patch) | |
tree | dd81257e2d9e5b0a97fd44be0a6bd7dce443644c /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 7e13aef4281a275b8884bf14d1bdd6c7e0e9375c (diff) | |
download | bcm5719-llvm-22c651c5770572641eaa16423b19e867f5f61d6b.tar.gz bcm5719-llvm-22c651c5770572641eaa16423b19e867f5f61d6b.zip |
libcxx: Fix for basic_stringbuf::seekoff() after r320604.
As a result of this change, the basic_stringbuf constructor that
takes a mode ends up leaving __hm_ set to 0, causing the comparison
"__hm_ - __str_.data() < __noff" in seekoff() to succeed, which caused
the function to incorrectly return -1. The fix is to account for the
possibility of __hm_ being 0 when computing the distance from __hm_
to the start of the string.
Differential Revision: https://reviews.llvm.org/D41319
llvm-svn: 321124
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
0 files changed, 0 insertions, 0 deletions