forked from OSchip/llvm-project
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. llvm-svn: 228484
This commit is contained in:
parent
33381f5e0b
commit
635c2c4378
|
@ -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