[llvm] r228484 - Change RHS-style decltype to LHS-style decltype<declval()>.
Zachary Turner
zturner at google.com
Fri Feb 6 18:02:23 PST 2015
Author: zturner
Date: Fri Feb 6 20:02:23 2015
New Revision: 228484
URL: http://llvm.org/viewvc/llvm-project?rev=228484&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h
llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h
llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h
llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolData.h
llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h?rev=228484&r1=228483&r2=228484&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h Fri Feb 6 20:02:23 2015
@@ -45,6 +45,6 @@ public:
}
};
-}; // namespace llvm
+} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h?rev=228484&r1=228483&r2=228484&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h Fri Feb 6 20:02:23 2015
@@ -29,6 +29,6 @@ public:
}
};
-}; // namespace llvm
+} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h?rev=228484&r1=228483&r2=228484&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h Fri Feb 6 20:02:23 2015
@@ -33,6 +33,6 @@ public:
}
};
-}; // namespace llvm
+} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolData.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolData.h?rev=228484&r1=228483&r2=228484&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolData.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/PDBSymbolData.h Fri Feb 6 20:02:23 2015
@@ -51,6 +51,6 @@ public:
}
};
-}; // namespace llvm
+} // namespace llvm
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
Modified: llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp?rev=228484&r1=228483&r2=228484&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp Fri Feb 6 20:02:23 2015
@@ -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(); \
}
More information about the llvm-commits
mailing list