mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-24 04:17:34 +00:00
[clang][index] Fix cast warning
This is a follow-up to D151938 that should fix GCC's -Wcast-qual warning.
This commit is contained in:
parent
c7430ff9bf
commit
1c64c414ed
@ -15,7 +15,8 @@
|
||||
namespace clang {
|
||||
namespace cxfile {
|
||||
inline CXFile makeCXFile(OptionalFileEntryRef FE) {
|
||||
return CXFile(FE ? &FE->getMapEntry() : nullptr);
|
||||
return CXFile(FE ? const_cast<FileEntryRef::MapEntry *>(&FE->getMapEntry())
|
||||
: nullptr);
|
||||
}
|
||||
|
||||
inline OptionalFileEntryRef getFileEntryRef(CXFile File) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user