Disable this warning for specific cast in llvm_regcomp().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sounds good to me
llvm/cmake/modules/HandleLLVMOptions.cmake | ||
---|---|---|
744 | looks like in other cases C_FLAGS comes before CXX_FLAGS - maybe switch this around for consistency? |
Comment Actions
Hi, we're still seeing sanitizer buildbot failures from what I assume is this patch.
https://lab.llvm.org/buildbot/#/builders/37/builds/23724
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/profile/InstrProfilingValue.c:62:17: error: cast from 'const unsigned short *' to 'unsigned short *' drops const qualifier [-Werror,-Wcast-qual] 62 | *((uint16_t *)&Data->NumValueSites[ValueKind]) = NumValueSites;
Maybe it's worth reverting, doing the cleanup, and then re-submitting rather than trying to fix-forward? It would appear if there's a lot of cleanup required.
Comment Actions
I do not have commit access, but I think reverting this makes sense if it is causing build failures. Sorry for the inconvenience!
Comment Actions
compiler-rt/lib/profile has been fixed by commit 51c8cacafd47b59e66816b10be357a9877187bc3.
looks like in other cases C_FLAGS comes before CXX_FLAGS - maybe switch this around for consistency?