[PATCH] D63750: Dump current PrettyStackTrace on SIGINFO (Ctrl-T)

youling257 via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 07:09:27 PST 2020


youling257 added a comment.

I have build problem with clang.
can you help me fix it?

In file included from external/llvm/lib/Support/Signals.cpp:220:
external/llvm/lib/Support/Unix/Signals.inc:388:23: error: no matching constructor for initialization of 'SaveAndRestore<int>'

  SaveAndRestore<int> SaveErrnoDuringASignalHandler(errno);
                      ^                             ~~~~~

external/llvm/lib/Support/../../include/llvm/Support/SaveAndRestore.h:21:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'volatile int' to 'const llvm::SaveAndRestore<int>' for 1st argument
template <typename T> struct SaveAndRestore {

  ^

external/llvm/lib/Support/../../include/llvm/Support/SaveAndRestore.h:22:3: note: candidate constructor not viable: 1st argument ('volatile int') would lose volatile qualifier

  SaveAndRestore(T &X) : X(X), OldValue(X) {}
  ^

external/llvm/lib/Support/../../include/llvm/Support/SaveAndRestore.h:23:3: note: candidate constructor not viable: requires 2 arguments, but 1 was provided

  SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) {
  ^


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63750/new/

https://reviews.llvm.org/D63750





More information about the llvm-commits mailing list