[llvm-commits] [llvm] r167115 - in /llvm/trunk: lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/switch_to_lookup_table.ll
Hans Wennborg
hans at chromium.org
Wed Oct 31 07:38:07 PDT 2012
On Wed, Oct 31, 2012 at 2:27 PM, Benjamin Kramer <benny.kra at gmail.com> wrote:
>
> On 31.10.2012, at 14:42, Hans Wennborg <hans at hanshq.net> wrote:
>
>> Author: hans
>> Date: Wed Oct 31 08:42:45 2012
>> New Revision: 167115
>> + if (CastInst *Cast = dyn_cast<CastInst>(I)) {
>> + Constant *A = dyn_cast<Constant>(I->getOperand(0));
>> + if (!A) A = ConstantPool.lookup(I->getOperand(0));
>> + if (!A) return false;
>
> clang says:
> SimplifyCFG.cpp:3254:20: warning: initialization of pointer of type 'llvm::Constant *' to null from a constant
> boolean expression [-Wbool-conversion]
Thanks! Fixed in r167117.
- Hans
More information about the llvm-commits
mailing list