[PATCH] D52210: [LLVM-C] Add C APIs to access DebugLoc info
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 25 14:12:39 PDT 2018
hiraditya added inline comments.
================
Comment at: lib/IR/Core.cpp:1225
+ unwrap<GlobalVariable>(Val)->getDebugInfo(GVEs);
+ return (GVEs.size() > 0 ? GVEs[0]->getVariable()->getLine() : 0);
+ } else if (isa<Function>(unwrap(Val))) {
----------------
GVEs[0]->getVariable() can return nullptr.
Repository:
rL LLVM
https://reviews.llvm.org/D52210
More information about the llvm-commits
mailing list