[clang] [clang] Check '-Wp, ' arg has values before accesing (PR #113677)

2024-11-05 Thread Jaime González via cfe-commits
jgonzac wrote: CC @jansvoboda11 @AaronBallman https://github.com/llvm/llvm-project/pull/113677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Check '-Wp, ' arg has values before accesing (PR #113677)

2024-10-25 Thread Jaime González via cfe-commits
https://github.com/jgonzac created https://github.com/llvm/llvm-project/pull/113677 Executing `clang -Wp,` without any argument value causes Undefined Behavior due to accessing a SmallVector without elements Executing clang in debug mode raises an assert and Valgrind complains as follow: ```