diff options
author | Eric Christopher <echristo@apple.com> | 2009-12-23 02:51:48 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-12-23 02:51:48 +0000 |
commit | fdb33458fcfcbea6989b9dff2ac853c89002e9d9 (patch) | |
tree | 45c68a2002ab56c7795454e6b6639434daf328b6 /llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | |
parent | 73536eab671fc1cd68fadd5b26afb8e6ab6ffe5e (diff) | |
download | bcm5719-llvm-fdb33458fcfcbea6989b9dff2ac853c89002e9d9.tar.gz bcm5719-llvm-fdb33458fcfcbea6989b9dff2ac853c89002e9d9.zip |
Update objectsize intrinsic and associated dependencies. Fix
lowering code and update testcases.
llvm-svn: 91979
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |