summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeng Cheng <gm4cheng@gmail.com>2013-05-01 15:00:07 +0000
committerPeng Cheng <gm4cheng@gmail.com>2013-05-01 15:00:07 +0000
commitdc42e3d831eee01f1552d9ccae4d088a4d154934 (patch)
treead37abad90fd22942ac5d0fb20c3fcd8e703a6cc /include
parentae2a1dacb7fed0d037db2116f5790be3b69b73fb (diff)
downloadllvm-dc42e3d831eee01f1552d9ccae4d088a4d154934.tar.gz
llvm-dc42e3d831eee01f1552d9ccae4d088a4d154934.tar.bz2
llvm-dc42e3d831eee01f1552d9ccae4d088a4d154934.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/DerivedTypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IR/DerivedTypes.h b/include/llvm/IR/DerivedTypes.h
index 6c00f596ba..e279e60e47 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;