aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-04-13 16:41:29 +0000
committerEric Christopher <echristo@apple.com>2010-04-13 16:41:29 +0000
commit2a7cb9d9ce020068c3cc6c86f8fd2532b148c6f5 (patch)
treef78ac12f79b5edea0b12dea075be24cc056b15f7 /lib/Transforms/Utils
parentb0322e6ddfb7f56cb7e8a770ec307fdb00cd5437 (diff)
downloadexternal_llvm-2a7cb9d9ce020068c3cc6c86f8fd2532b148c6f5.zip
external_llvm-2a7cb9d9ce020068c3cc6c86f8fd2532b148c6f5.tar.gz
external_llvm-2a7cb9d9ce020068c3cc6c86f8fd2532b148c6f5.tar.bz2
Actually... return after the check for invalid input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/BuildLibCalls.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/BuildLibCalls.cpp b/lib/Transforms/Utils/BuildLibCalls.cpp
index b359d52..767fa3a 100644
--- a/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -478,6 +478,7 @@ bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) {
FT->getParamType(0) != Type::getInt8PtrTy(Context) ||
!FT->getParamType(2)->isIntegerTy() ||
FT->getParamType(3) != TD->getIntPtrType(Context))
+ return false;
if (isFoldable(4, 3, false)) {
Value *Ret = EmitStrNCpy(CI->getOperand(1), CI->getOperand(2),