diff options
author | Michal Gorny <mgorny@gentoo.org> | 2019-07-02 11:32:03 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2019-07-02 11:32:03 +0000 |
commit | 638cc0a47999c733e7ce2ce3ae3baebaf90c42f8 (patch) | |
tree | 074fa8d76e4a05edaf5cb5b5d0bf77c6c421010f /llvm/test/Transforms/LoopVectorize/control-flow.ll | |
parent | 9353421ecd12d071a27a0f05948113a45888f16b (diff) | |
download | bcm5719-llvm-638cc0a47999c733e7ce2ce3ae3baebaf90c42f8.tar.gz bcm5719-llvm-638cc0a47999c733e7ce2ce3ae3baebaf90c42f8.zip |
[llvm] [Support] Clean PrintStackTrace() ptr arithmetic up
Use '%tu' modifier for pointer arithmetic since we are using C++11
already. Prefer static_cast<> over C-style cast. Remove unnecessary
conversion of result, and add const qualifier to converted pointers,
to silence the following warning:
In file included from /home/mgorny/llvm-project/llvm/lib/Support/Signals.cpp:220:0:
/home/mgorny/llvm-project/llvm/lib/Support/Unix/Signals.inc: In function ‘void llvm::sys::PrintStackTrace(llvm::raw_ostream&)’:
/home/mgorny/llvm-project/llvm/lib/Support/Unix/Signals.inc:546:53: warning: cast from type ‘const void*’ to type ‘char*’ casts away qualifiers [-Wcast-qual]
(char*)dlinfo.dli_saddr));
^~~~~~~~~
Differential Revision: https://reviews.llvm.org/D63888
llvm-svn: 364912
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/control-flow.ll')
0 files changed, 0 insertions, 0 deletions