[PATCH] D101713: [NFC] Use ArgListEntry indirect types more in ISel lowering
    David Blaikie via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun May  2 09:54:56 PDT 2021
    
    
  
dblaikie added inline comments.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:1746-1747
+  Type *getParamInAllocaType(unsigned ArgNo) const {
+    Type *Ty = Attrs.getParamInAllocaType(ArgNo);
+    return Ty ? Ty : getArgOperand(ArgNo)->getType()->getPointerElementType();
+  }
----------------
When does the 'Ty' come back as null? Would that only be it older bitcode, that should be auto-upgraded when loading?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101713/new/
https://reviews.llvm.org/D101713
    
    
More information about the llvm-commits
mailing list