r293369 - Attempt to unbreak buildbots.
George Burgess IV via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 27 20:16:32 PST 2017
Author: gbiv
Date: Fri Jan 27 22:16:32 2017
New Revision: 293369
URL: http://llvm.org/viewvc/llvm-project?rev=293369&view=rev
Log:
Attempt to unbreak buildbots.
r293360 broke some ARM bots, because size_t on those targets is
apparently `unsigned int`, not `unsigned long`. `sizeof(whatever)`
should to give us a `size_t`, so we can just use the type of that
instead.
Modified:
cfe/trunk/test/SemaCXX/diagnose_if.cpp
Modified: cfe/trunk/test/SemaCXX/diagnose_if.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/diagnose_if.cpp?rev=293369&r1=293368&r2=293369&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/diagnose_if.cpp (original)
+++ cfe/trunk/test/SemaCXX/diagnose_if.cpp Fri Jan 27 22:16:32 2017
@@ -2,7 +2,7 @@
#define _diagnose_if(...) __attribute__((diagnose_if(__VA_ARGS__)))
-using size_t = unsigned long;
+using size_t = decltype(sizeof(int));
namespace type_dependent {
template <typename T>
More information about the cfe-commits
mailing list