summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ImplicitNullChecks.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-08-04 03:53:04 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-08-04 03:53:04 +0000
commit6ac555fb7118c8e6893d40068d3f9407b4641e41 (patch)
tree97649ffbf8adc45e5850d9c41ed296515b37b849 /llvm/lib/CodeGen/ImplicitNullChecks.cpp
parent38a45cc686e7110e51e154757302827d384d538e (diff)
downloadbcm5719-llvm-6ac555fb7118c8e6893d40068d3f9407b4641e41.tar.gz
bcm5719-llvm-6ac555fb7118c8e6893d40068d3f9407b4641e41.zip
[UB] Avoid a really broken call to realloc that would later result in
a bad call to memcpy. When we only have a buffer from one of the two reparse calls, we can just return that buffer rather than going through the realloc/memcpy dance. Found with UBsan. llvm-svn: 243950
Diffstat (limited to 'llvm/lib/CodeGen/ImplicitNullChecks.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud