[llvm-commits] [llvm] r101139 - /llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp

Eric Christopher echristo at apple.com
Tue Apr 13 09:41:29 PDT 2010


Author: echristo
Date: Tue Apr 13 11:41:29 2010
New Revision: 101139

URL: http://llvm.org/viewvc/llvm-project?rev=101139&view=rev
Log:
Actually... return after the check for invalid input.

Modified:
    llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp?rev=101139&r1=101138&r2=101139&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp Tue Apr 13 11:41:29 2010
@@ -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),





More information about the llvm-commits mailing list