[llvm] Fix crash due to un-checked error in LVReaderHandler::handleArchive method (PR #118951)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 08:36:15 PST 2024
CarlosAlbertoEnciso wrote:
@aurelien35 This is the information extracted from my notes.
Source file: `test.cpp`
```
using INTPTR = const int *;
int foo(INTPTR ParamPtr, unsigned ParamUnsigned, bool ParamBool) {
if (ParamBool) {
typedef int INTEGER;
const INTEGER CONSTANT = 7;
return CONSTANT;
}
return ParamUnsigned;
}
```
Command line used to generate the binary files:
`-- Linux`
```
clang -c -w -g -gdwarf-4 -O0 test.cpp -o test-dwarf-clang.o
g++ -c -w -g -O0 test.cpp -o test-dwarf-gcc.o
```
`-- Windows`
```
clang++.exe --target=x86_64-windows -c -w -g -gcodeview test.cpp -o test-codeview-clang.o
cl.exe /nologo /EHsc /Od /Z7 /Fotest-codeview-msvc.o /c test.cpp
cl.exe /nologo /EHsc /Od /Zi /Fotest-codeview-pdb-msvc.o /Fdtest-codeview-pdb-msvc-.pdb /c test.cpp
```
https://github.com/llvm/llvm-project/pull/118951
More information about the llvm-commits
mailing list