We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8fd7a commit c9ce780Copy full SHA for c9ce780
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -823,6 +823,8 @@ memprof::extractCallsFromIR(Module &M) {
823
for (const DILocation *DIL = I.getDebugLoc(); DIL;
824
DIL = DIL->getInlinedAt()) {
825
StringRef CallerName = DIL->getSubprogramLinkageName();
826
+ assert(!CallerName.empty() &&
827
+ "Be sure to enable -fdebug-info-for-profiling");
828
uint64_t CallerGUID = IndexedMemProfRecord::getGUID(CallerName);
829
uint64_t CalleeGUID = IndexedMemProfRecord::getGUID(CalleeName);
830
LineLocation Loc = {GetOffset(DIL), DIL->getColumn()};
0 commit comments