Skip to content

Commit

Permalink
[HIPIFY][SWDEV-429021][warning][fix] Fix for the warning `'getPointer…
Browse files Browse the repository at this point in the history
…' is deprecated: Use &*X instead`

+ Got rid of using `getPointer()`
  • Loading branch information
emankov committed Oct 26, 2023
1 parent dd7b9db commit e6b5a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LLVMCompat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const clang::IdentifierInfo *getControllingMacro(clang::CompilerInstance &CI) {
clang::ExternalPreprocessorSource *EPL = HS.getExternalLookup();
#if LLVM_VERSION_MAJOR >= 18
const clang::OptionalFileEntryRef OFE = SM.getFileEntryRefForID(SM.getMainFileID());
return HS.getFileInfo(*OFE.getPointer()).getControllingMacro(EPL);
return HS.getFileInfo(*OFE).getControllingMacro(EPL);
#else
const clang::FileEntry *FE = SM.getFileEntryForID(SM.getMainFileID());
return HS.getFileInfo(FE).getControllingMacro(EPL);
Expand Down

0 comments on commit e6b5a56

Please sign in to comment.