From: Peng Cheng Date: Wed, 1 May 2013 15:00:07 +0000 (+0000) Subject: get rid of windows warning: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dc42e3d831eee01f1552d9ccae4d088a4d154934;p=oota-llvm.git get rid of windows warning: warning C4800: forcing value to bool 'true' or 'false' (performance warning) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DerivedTypes.h b/include/llvm/IR/DerivedTypes.h index 6c00f596bad..e279e60e476 100644 --- a/include/llvm/IR/DerivedTypes.h +++ b/include/llvm/IR/DerivedTypes.h @@ -117,7 +117,7 @@ public: /// argument type. static bool isValidArgumentType(Type *ArgTy); - bool isVarArg() const { return getSubclassData(); } + bool isVarArg() const { return getSubclassData()!=0; } Type *getReturnType() const { return ContainedTys[0]; } typedef Type::subtype_iterator param_iterator;