efriedma added a comment. Following reproduces for me (clang from main, Ubuntu 16.04).
$ cat test.cpp int foo() { int i=6; do --i; while (!(i%3)); do {} while (!(i%5)); return 0; } $ clang++ test.cpp -c -fno-integrated-as -gdwarf-4 -O2 -fno-finite-loops /tmp/test-f97496.s: Assembler messages: /tmp/test-f97496.s:18: Error: file number 1 already allocated clang++: error: assembler command failed with exit code 1 (use -v to see invocation) I think it triggers when the assembly file contains code before the first ".file" directive. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145726/new/ https://reviews.llvm.org/D145726 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits