diff options
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp index d8dbb7adb0a..c12e60ac1fd 100644 --- a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -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(); \ } |