[PATCH] D141451: [clang] report inlining decisions with -Wattribute-{warning|error}
    Arthur Eubanks via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May  2 13:20:18 PDT 2023
    
    
  
aeubanks added inline comments.
================
Comment at: llvm/include/llvm/IR/DiagnosticInfo.h:1122
   }
+  void
+  getInliningDecisions(SmallVectorImpl<std::string> &InliningDecisions) const;
----------------
can this return a SmallVector instead of taking one as a mutable param?
================
Comment at: llvm/lib/IR/DiagnosticInfo.cpp:462
+  const MDOperand &MO = MDN->getOperand(0);
+  if (auto *MDT = dyn_cast<MDTuple>(MO)) {
+    for (const MDOperand &MO : MDT->operands()) {
----------------
seems simpler if this is always a `MDTuple` instead of special casing one entry to be `MDString`
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141451/new/
https://reviews.llvm.org/D141451
    
    
More information about the llvm-commits
mailing list