[PATCH] D75402: [HIP] Make sure, unused hip-pinned-shadow global var is kept within device code

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 09:30:18 PST 2020


hliao added a comment.

the assertion in addUsedGlobal should not be removed. that will remove the guard for potential bugs



================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:1919
 
 void CodeGenModule::addUsedGlobal(llvm::GlobalValue *GV) {
   LLVMUsed.emplace_back(GV);
----------------
This check should be removed completely instead it should be revised for the exceptions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75402/new/

https://reviews.llvm.org/D75402





More information about the cfe-commits mailing list