After fix for PR48174 the base pointer for pointer-based
array-sections/array-subscripts will be emitted as &ptr[idx], but
actually it should be just ptr, i.e. the address stored in the ponter
to point correctly to the beginning of the array. Currently it may lead
to a crash in the runtime.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
420 ms | linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp |