aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-12-13 18:11:33 +0000
committerZachary Turner <zturner@google.com>2018-12-13 18:11:33 +0000
commita05ae9db01ac7d8f32f4ba52f74c1c447eb7acdd (patch)
tree864e7c3f4e4bd0703971462eec7e393ff5fd3ee7 /clang/lib/CodeGen/CodeGenModule.cpp
parent046d100b4107ee6c9b8fe68e111dcf108cb18bdd (diff)
downloadllvm-a05ae9db01ac7d8f32f4ba52f74c1c447eb7acdd.zip
llvm-a05ae9db01ac7d8f32f4ba52f74c1c447eb7acdd.tar.gz
llvm-a05ae9db01ac7d8f32f4ba52f74c1c447eb7acdd.tar.bz2
Correctly handle skewed streams in drop_front() method.
When calling BinaryStreamArray::drop_front(), if the stream is skewed it means we must never drop the first bytes of the stream since offsets which occur in records assume the existence of those bytes. So if we want to skip the first record in a stream, then what we really want to do is just set the begin pointer to the next record. But we shouldn't actually remove those bytes from the underlying view of the data. llvm-svn: 349066
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions