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:
Zachary Turner 2015-02-07 02:02:23 +00:00
parent d0898f1565
commit 6a03769d1c
5 changed files with 6 additions and 5 deletions

View File

@ -45,6 +45,6 @@ public:
}
};
}; // namespace llvm
} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H

View File

@ -29,6 +29,6 @@ public:
}
};
}; // namespace llvm
} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H

View File

@ -33,6 +33,6 @@ public:
}
};
}; // namespace llvm
} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H

View File

@ -51,6 +51,6 @@ public:
}
};
}; // namespace llvm
} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H

View File

@ -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(); \
}