diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-21 17:49:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 17:49:25 +0100 |
commit | c9ceb9b75fd547c7d2e79837075370f4c8db8faa (patch) | |
tree | 8a82e4f1dce77a1b714633e7f7cd26b75127b743 /clang/lib/CodeGen | |
parent | 0823f4ff086e5352f7543b68ce6e7823498cf44b (diff) | |
download | llvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.zip llvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.tar.gz llvm-c9ceb9b75fd547c7d2e79837075370f4c8db8faa.tar.bz2 |
[DebugInfo] Remove intrinsic-flavours of findDbgUsers (#149816)
This is one of the final remaining debug-intrinsic specific codepaths
out there, and pieces of cross-LLVM infrastructure to do with debug
intrinsics.
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index e24c68e..a371b67 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -6062,11 +6062,10 @@ void CGDebugInfo::EmitPseudoVariable(CGBuilderTy &Builder, // ptr, in this case its debug info may not match the actual type of object // being used as in the next instruction, so we will need to emit a pseudo // variable for type-casted value. - auto DeclareTypeMatches = [&](auto *DbgDeclare) { + auto DeclareTypeMatches = [&](llvm::DbgVariableRecord *DbgDeclare) { return DbgDeclare->getVariable()->getType() == Type; }; - if (any_of(llvm::findDbgDeclares(Var), DeclareTypeMatches) || - any_of(llvm::findDVRDeclares(Var), DeclareTypeMatches)) + if (any_of(llvm::findDVRDeclares(Var), DeclareTypeMatches)) return; } |