From fdb33458fcfcbea6989b9dff2ac853c89002e9d9 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 23 Dec 2009 02:51:48 +0000 Subject: Update objectsize intrinsic and associated dependencies. Fix lowering code and update testcases. llvm-svn: 91979 --- llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp') diff --git a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 170e3aa658e..4c6580f64a1 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -1122,7 +1122,7 @@ struct SizeOpt : public LibCallOptimization { const Type *Ty = Callee->getFunctionType()->getReturnType(); - if (Const->getZExtValue() < 2) + if (Const->getZExtValue() == 0) return Constant::getAllOnesValue(Ty); else return ConstantInt::get(Ty, 0); -- cgit v1.2.3