This is an archive of the discontinued LLVM Phabricator instance.

Change if() continue; to an assert if a DBG_VALUE or DBG_VALUE_LIST returns a null DILocalVariable
ClosedPublic

Authored by rastogishubham on May 3 2023, 9:23 AM.

Details

Summary

A DBG_VALUE or DBG_VALUE_LIST must always return a non-null DILocalVariable, the ARMLoadStoreOptimizer code that move’s DBG_VALUE and DBG_VALUE_LIST instructions if their corresponding loads have been moved, currently just continues if it finds a DBG_VALUE or DBG_VALUE_LIST with a null DILocalVariable, change that to an assert

Diff Detail

Event Timeline

rastogishubham created this revision.May 3 2023, 9:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 9:23 AM
rastogishubham requested review of this revision.May 3 2023, 9:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 9:23 AM

clang-formatted the diff

aprantl accepted this revision.May 3 2023, 1:40 PM
This revision is now accepted and ready to land.May 3 2023, 1:40 PM