]> granicus.if.org Git - llvm/commit
[SLC] Preserve attrs for strncpy(x, "", y) -> memset(align 1 x, '\0', y)
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 10:25:38 +0000 (10:25 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 17 Sep 2019 10:25:38 +0000 (10:25 +0000)
commitd15afd36388f0ee77e85e74e53ac1ebc52a1b5dc
tree658fc3da2b2d404ddcaf04fe66524e2662e685c4
parent464b4d0dfb6a1e048a92659925b563cb36675f43
[SLC] Preserve attrs for strncpy(x, "", y) -> memset(align 1 x, '\0', y)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/strncpy-1.ll