aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorBrooks Davis <brooks@one-eyed-alien.net>2025-01-02 09:06:29 -0800
committerGitHub <noreply@github.com>2025-01-02 12:06:29 -0500
commit7326e903d72ba390a6368ff3e9eb2ab2251a1b13 (patch)
tree2a56f173cd0e8c56e878d2d12ec244ea8aacbc8f /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parent4075ddad7183e6f0b66e2c8cc7a03b461a8038e6 (diff)
downloadllvm-7326e903d72ba390a6368ff3e9eb2ab2251a1b13.zip
llvm-7326e903d72ba390a6368ff3e9eb2ab2251a1b13.tar.gz
llvm-7326e903d72ba390a6368ff3e9eb2ab2251a1b13.tar.bz2
flang: fix backtrace build on FreeBSD (#120297)
FreeBSD's libexecinfo defines backtrace with a size_t for the size argument and return type. This almost certainly doesn't make sense, but what's done is done so cast the output to allow compilation. Otherwise we get: .../flang/runtime/stop.cpp:165:13: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing] 165 | int nptrs{backtrace(buffer, MAX_CALL_STACK)}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions