diff options
author | Zachary Turner <zturner@google.com> | 2015-02-07 02:02:23 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-02-07 02:02:23 +0000 |
commit | 635c2c4378c0ad112899810cb39248d4cc95e0cb (patch) | |
tree | 8e31231b9ec96072d312e0ecccc35530074409d8 /llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp | |
parent | 33381f5e0b9f75f0e691ac5f8a057a937e5aee09 (diff) | |
download | bcm5719-llvm-635c2c4378c0ad112899810cb39248d4cc95e0cb.tar.gz bcm5719-llvm-635c2c4378c0ad112899810cb39248d4cc95e0cb.zip |
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
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(); \ } |