================
@@ -82,6 +76,8 @@ DebugLoc DebugLoc::getFnDebugLoc() const {
   return DebugLoc();
 }
 
+MDNode *DebugLoc::getAsMDNode() const { return Loc; }
----------------
aengelke wrote:

DILocation is forward-declared and we'd need to include DebugInfoMetadata.h 
otherwise (and, transitively, everywhere where Instruction.h is used) for the 
implicit cast (and I don't want to use a reinterpret_cast here).

https://github.com/llvm/llvm-project/pull/200649
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to