Issue 55527
Summary [llvm-ar] Replace operation can silently convert a regular archive to a thin archive
Labels tools:llvm-ar/llvm-ranlib
Assignees
Reporter bd1976bris
    In the following test-case:

```
:~/tests$ echo "void foo(){}" > foo.c
:~/tests$ gcc -c foo.c
:~/tests$ llvm-ar qc q.a foo.o
:~/tests$ llvm-ar rT q.a foo.o
```

The output should be:
`error: Cannot convert existing library q.a to thin format`

Instead, llvm-ar silently converts the existing archive to a thin archive.

This bug appears to exist in all current releases, including llvm14.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to