summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-07 02:02:23 +0000
committerZachary Turner <zturner@google.com>2015-02-07 02:02:23 +0000
commit635c2c4378c0ad112899810cb39248d4cc95e0cb (patch)
tree8e31231b9ec96072d312e0ecccc35530074409d8 /llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp
parent33381f5e0b9f75f0e691ac5f8a057a937e5aee09 (diff)
downloadbcm5719-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.cpp3
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(); \
}
OpenPOWER on IntegriCloud