[LLVMbugs] [Bug 22277] New: fast-isel cannot handle strlen
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 20 14:48:45 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22277
Bug ID: 22277
Summary: fast-isel cannot handle strlen
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rkotler at mips.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
~/llvmw/build/Deb~/llvmw/build/Debug+Asserts/bin/clang -O0 -mllvm
-fast-isel-verbose -mllvm -fast-isel strlen1.c
strlen1.c:12:3: warning: implicitly declaring library function 'printf' with
type 'int (const char *, ...)'
printf("%i\n", len);
^
strlen1.c:12:3: note: include the header <stdio.h> or explicitly provide a
declaration for 'printf'
FastISel missed call: %call = call i64 @strlen(i8* %0) #3
1 warning generated.
#include <string.h>
char *hello = "hello";
int len;
void foo() {
len = strlen(hello);
}
int main() {
foo();
printf("%i\n", len);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150120/0182be10/attachment.html>
More information about the llvm-bugs
mailing list