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:
37ad466
)
Untabify previous commit.
author
Eric Christopher
<echristo@apple.com>
Tue, 2 Feb 2010 00:06:55 +0000
(
00:06
+0000)
committer
Eric Christopher
<echristo@apple.com>
Tue, 2 Feb 2010 00:06:55 +0000
(
00:06
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95035
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SimplifyLibCalls.cpp
b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
index 20014f3026a5dc8a82eed00cb7f0fa528fe7e2c6..9c06ab7057fd4f8c602fc7bd4386bbcbf20f5580 100644
(file)
--- a/
lib/Transforms/Scalar/SimplifyLibCalls.cpp
+++ b/
lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@
-232,10
+232,10
@@
Value *LibCallOptimization::EmitMemChr(Value *Ptr, Value *Val,
AWI = AttributeWithIndex::get(~0u, Attribute::ReadOnly | Attribute::NoUnwind);
Value *MemChr = M->getOrInsertFunction("memchr", AttrListPtr::get(&AWI, 1),
-
Type::getInt8PtrTy(*Context),
-
Type::getInt8PtrTy(*Context),
+ Type::getInt8PtrTy(*Context),
+ Type::getInt8PtrTy(*Context),
Type::getInt32Ty(*Context),
-
TD->getIntPtrType(*Context),
+ TD->getIntPtrType(*Context),
NULL);
CallInst *CI = B.CreateCall3(MemChr, CastToCStr(Ptr, B), Val, Len, "memchr");