8000 [BPF] Fix issues with external declarations of C++ structor decls by rnk · Pull Request #137079 · llvm/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

[BPF] Fix issues with external declarations of C++ structor decls #137079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
pacify formatter check
  • Loading branch information
rnk committed Apr 23, 2025
commit d31c0e08c93d42e1f9bd5bcac90196f5aa18f39f
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5399,7 +5399,7 @@ void CodeGenModule::EmitExternalDeclaration(const DeclaratorDecl *D) {
llvm::Constant *Addr = GetAddrOfGlobal(GD)->stripPointerCasts();
if (const auto *VD = dyn_cast<VarDecl>(D)) {
DI->EmitExternalVariable(
cast<llvm::GlobalVariable>(Addr->stripPointerCasts()), VD);
cast<llvm::GlobalVariable>(Addr->stripPointerCasts()), VD);
} else if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
llvm::Function *Fn = cast<llvm::Function>(Addr);
if (!Fn->getSubprogram())
Expand Down
Loading
0