diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-02-10 21:53:28 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-02-10 21:53:28 +0000 |
commit | 3e58a6a7b2b6f6af9ac2b091909e829fe5a21a99 (patch) | |
tree | c842cc6566821a0904ef34bba00f90c64f7386e9 /llvm/lib/IR/Module.cpp | |
parent | fa61bb5be9bbfdce974c3cf2cd4686485b9abf92 (diff) | |
download | bcm5719-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