commit | 8a6184c11416d7c4e08e160096d6de5b7305e077 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Tue Apr 13 16:41:29 2010 +0000 |
committer | Eric Christopher <echristo@apple.com> | Tue Apr 13 16:41:29 2010 +0000 |
tree | f78ac12f79b5edea0b12dea075be24cc056b15f7 | |
parent | 3f2b117d6ab4cf9f08af442a3c18e0368b429baa [diff] [blame] |
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
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 @@ 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),