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:
92e63d8
)
Formatting.
author
Eric Christopher
<echristo@apple.com>
Mon, 1 Feb 2010 23:25:03 +0000
(23:25 +0000)
committer
Eric Christopher
<echristo@apple.com>
Mon, 1 Feb 2010 23:25:03 +0000
(23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95027
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 a49da9ce9e5017645a17ba12499de06bf08faf90..20014f3026a5dc8a82eed00cb7f0fa528fe7e2c6 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");