projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0322e6
)
Actually... return after the check for invalid input.
author
Eric Christopher
<echristo@apple.com>
Tue, 13 Apr 2010 16:41:29 +0000
(16:41 +0000)
committer
Eric Christopher
<echristo@apple.com>
Tue, 13 Apr 2010 16:41:29 +0000
(16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101139
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/BuildLibCalls.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/BuildLibCalls.cpp
b/lib/Transforms/Utils/BuildLibCalls.cpp
index b359d524969e167acad216f1cc21e751cc7a2529..767fa3a0a6b3e3cee974b071c99071f1846128db 100644
(file)
--- 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),