Explicitly cast an expression to bool before handing it off to __builtin_expect.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 29 Aug 2012 23:28:45 +0000 (23:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 29 Aug 2012 23:28:45 +0000 (23:28 +0000)
commit4d69a8c8b2133e441503ac9583c4a6056f52e0f3
treec0e7d353a608817d9167e59eb5a917f50059cfea
parente160c53fbef056a3f121eeebcb7074f780bfae52
Explicitly cast an expression to bool before handing it off to __builtin_expect.

Avoids surprises when someone uses LLVM_(UN)LIKELY with an integer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162877 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h