[PATCH] D52210: [LLVM-C] Add C APIs to access DebugLoc info

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 24 08:18:25 PDT 2018


hiraditya added inline comments.


================
Comment at: lib/IR/Core.cpp:1170
+    if (GVEs.size() != 0) {
+      StringRef S = GVEs[0]->getVariable()->getDirectory();
+      *Length = S.size();
----------------
`getVariable` can return nullptr


Repository:
  rL LLVM

https://reviews.llvm.org/D52210





More information about the llvm-commits mailing list