[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)
    Keith Packard via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Sep 23 11:14:30 PDT 2024
    
    
  
================
@@ -21228,6 +21228,14 @@ Value *RISCVTargetLowering::getIRStackGuard(IRBuilderBase &IRB) const {
   if (Subtarget.isTargetAndroid())
     return useTpOffset(IRB, -0x18);
 
+  Module *M = IRB.GetInsertBlock()->getParent()->getParent();
----------------
keith-packard wrote:
Yup, getModule is just `return getParent()->getParent();`. Done.
https://github.com/llvm/llvm-project/pull/108942
    
    
More information about the llvm-commits
mailing list