summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-02-10 21:53:28 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-02-10 21:53:28 +0000
commit3e58a6a7b2b6f6af9ac2b091909e829fe5a21a99 (patch)
treec842cc6566821a0904ef34bba00f90c64f7386e9 /llvm/lib/IR/Module.cpp
parentfa61bb5be9bbfdce974c3cf2cd4686485b9abf92 (diff)
downloadbcm5719-llvm-3e58a6a7b2b6f6af9ac2b091909e829fe5a21a99.tar.gz
bcm5719-llvm-3e58a6a7b2b6f6af9ac2b091909e829fe5a21a99.zip
Fix invalid casts in <functional>.
static_cast of a pointer to object before the start of the object's lifetime has undefined behavior. This code triggers CFI warnings. This change replaces C-style casts with reinterpret_cast, which is fine per the standard, add applies an attribute to silence CFI (which barks on reinterpret_cast, too). llvm-svn: 260441
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud