mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Change RHS-style decltype to LHS-style decltype<declval()>.
Seems some compilers don't like the RHS-style decltype specifier. This should fix the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0898f1565
commit
6a03769d1c
@ -45,6 +45,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace llvm
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H
|
||||
|
@ -29,6 +29,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace llvm
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H
|
||||
|
@ -33,6 +33,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace llvm
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
|
||||
|
@ -51,6 +51,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace llvm
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
|
||||
|
@ -7,6 +7,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <type_traits>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
|
||||
@ -60,7 +61,7 @@ namespace std {
|
||||
namespace {
|
||||
|
||||
#define MOCK_SYMBOL_ACCESSOR(Func) \
|
||||
auto Func() const->decltype(((IPDBRawSymbol *)nullptr)->Func()) override { \
|
||||
decltype(std::declval<IPDBRawSymbol>().Func()) Func() const override { \
|
||||
typedef decltype(IPDBRawSymbol::Func()) ReturnType; \
|
||||
return ReturnType(); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user