[PATCH] D20421: [TargetLibraryInfo] Fix signature recognition of some lib functions.
Vaivaswatha Nagaraj via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 03:23:49 PDT 2016
vaivaswatha created this revision.
vaivaswatha added a reviewer: hfinkel.
vaivaswatha added a subscriber: llvm-commits.
Some library functions such as free, fseek, feof etc have been marked
as having 0 arguments. This is incorrect. Fix it.
http://reviews.llvm.org/D20421
Files:
lib/Analysis/TargetLibraryInfo.cpp
Index: lib/Analysis/TargetLibraryInfo.cpp
===================================================================
--- lib/Analysis/TargetLibraryInfo.cpp
+++ lib/Analysis/TargetLibraryInfo.cpp
@@ -730,7 +730,6 @@
case LibFunc::flockfile:
case LibFunc::funlockfile:
case LibFunc::ftrylockfile:
- return (NumParams == 0 && FTy.getParamType(0)->isPointerTy());
case LibFunc::ferror:
return (NumParams == 1 && FTy.getParamType(0)->isPointerTy());
case LibFunc::fputc:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20421.57758.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/d4468672/attachment.bin>
More information about the llvm-commits
mailing list