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:
Zachary Turner 2015-02-07 02:02:23 +00:00
parent 33381f5e0b
commit 635c2c4378
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(); \
}