From: George Burgess IV Date: Sat, 28 Jan 2017 04:16:32 +0000 (+0000) Subject: Attempt to unbreak buildbots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fe61520cc5dcd674a7236f34886b311087a215d;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293369 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/diagnose_if.cpp b/test/SemaCXX/diagnose_if.cpp index 5a9567f948..02b3620e76 100644 --- a/test/SemaCXX/diagnose_if.cpp +++ b/test/SemaCXX/diagnose_if.cpp @@ -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