[llvm-dev] LLVM90 build failures on Android build environment
youling 257 via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 4 07:21:38 PST 2020
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) {
^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200204/f512093b/attachment.html>
More information about the llvm-dev
mailing list