]> granicus.if.org Git - clang/commitdiff
Attempt to unbreak buildbots.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 28 Jan 2017 04:16:32 +0000 (04:16 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 28 Jan 2017 04:16:32 +0000 (04:16 +0000)
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

test/SemaCXX/diagnose_if.cpp

index 5a9567f948ee3398d11f8a36ebe62a19fead53fd..02b3620e7692f61fa9479223d50213617c298611 100644 (file)
@@ -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>