Open llvmbot opened 9 years ago
~/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 or explicitly provide a declaration for 'printf' FastISel missed call: %call = call i64 @strlen(i8 %0) #3 1 warning generated.
char *hello = "hello"; int len;
void foo() { len = strlen(hello); }
int main() { foo(); printf("%i\n", len); }
clang -O0 -mllvm -fast-isel-abort=3 -mllvm -fast-isel fatal error: error in backend: FastISel missed call: %2 = call i64 @strlen(ptr noundef %1) #3, !dbg !13 (in function: foo)
fatal error: error in backend: FastISel missed call: %2 = call i64 @strlen(ptr noundef %1) #3, !dbg !13 (in function: foo)
Extended Description
~/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 or explicitly provide a
declaration for 'printf'
FastISel missed call: %call = call i64 @strlen(i8 %0) #3
1 warning generated.
include
char *hello = "hello"; int len;
void foo() { len = strlen(hello); }
int main() { foo(); printf("%i\n", len); }