From: Zachary Turner Date: Sat, 7 Feb 2015 02:02:23 +0000 (+0000) Subject: Change RHS-style decltype to LHS-style decltype. X-Git-Tag: android-x86-7.1-r4~52293 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6a03769d1c49ff02f371540bff2f46ef1130df39;p=android-x86%2Fexternal-llvm.git Change RHS-style decltype to LHS-style decltype. 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 --- diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h index 191e2b990dc..56dfc7352e9 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h @@ -45,6 +45,6 @@ public: } }; -}; // namespace llvm +} // namespace llvm #endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h index 6ffa829c337..dd833bd01d0 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h @@ -29,6 +29,6 @@ public: } }; -}; // namespace llvm +} // namespace llvm #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h b/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h index 7467979be53..0d95b879ebc 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h @@ -33,6 +33,6 @@ public: } }; -}; // namespace llvm +} // namespace llvm #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolData.h b/include/llvm/DebugInfo/PDB/PDBSymbolData.h index c98de6ae2c5..64f0f76c08e 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolData.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolData.h @@ -51,6 +51,6 @@ public: } }; -}; // namespace llvm +} // namespace llvm #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H diff --git a/unittests/DebugInfo/PDB/PDBApiTest.cpp b/unittests/DebugInfo/PDB/PDBApiTest.cpp index d8dbb7adb0a..c12e60ac1fd 100644 --- a/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#include #include #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().Func()) Func() const override { \ typedef decltype(IPDBRawSymbol::Func()) ReturnType; \ return ReturnType(); \ }