]> granicus.if.org Git - clang/commit
test: improve condition for the check
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 18:41:07 +0000 (18:41 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Sep 2018 18:41:07 +0000 (18:41 +0000)
commit27a174792cc4762f75cc44ad25b527c4813a8eeb
tree8f692b5e288c1382c7eb99e96273fb463ab8d002
parent9e45e2ae46efa0a6b63296321ce9f139ae317f13
test: improve condition for the check

When the type of `wint_t` is `int`, the promotion will allow this to pass.
Check this explicitly rather than using the size.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342569 91177308-0d34-0410-b5e6-96231b3b80d8
test/Sema/format-strings.c