diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-12 18:22:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-12 18:22:33 +0000 |
commit | 6cd82fb430f3fd83aee15a9dad4dc16b85440990 (patch) | |
tree | dd3bf369848196e1b02fa0876d42bb16a8e34249 /llvm/lib/Bitcode/Writer/BitWriter.cpp | |
parent | 8e23171fbca4160ecfa1b3454218a0004e0bfbfe (diff) | |
download | llvm-6cd82fb430f3fd83aee15a9dad4dc16b85440990.zip llvm-6cd82fb430f3fd83aee15a9dad4dc16b85440990.tar.gz llvm-6cd82fb430f3fd83aee15a9dad4dc16b85440990.tar.bz2 |
"There was a typo in my previous patch which leads to miscompilation of
strncat :(
strncat(foo, "bar", 99)
would be optimized to
memcpy(foo+strlen(foo), "bar", 100, 1)
instead of
memcpy(foo+strlen(foo), "bar", 4, 1)"
Patch by Benjamin Kramer!
llvm-svn: 68905
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitWriter.cpp')
0 files changed, 0 insertions, 0 deletions