Skip to content
Snippets Groups Projects
Commit 28a2edef authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

StringTableBuilder: Don't assert when writing an empty raw string table.

llvm-svn: 299602
parent 05859d82
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ void StringTableBuilder::write(raw_ostream &OS) const {
assert(isFinalized());
SmallString<0> Data;
Data.resize(getSize());
write((uint8_t *)&Data[0]);
write((uint8_t *)Data.data());
OS << Data;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment