Skip to content

Commit

Permalink
Add note to assertion
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Viand <alexander.viand@intel.com>
  • Loading branch information
j2kun and AlexanderViand-Intel committed Mar 15, 2024
1 parent 27035a9 commit e2cfca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/Analysis/TargetSlotAnalysis/TargetSlotAnalysis.h
Expand Up @@ -22,7 +22,8 @@ class TargetSlot {

/// Get a known slot target.
const int64_t &getValue() const {
assert(isInitialized());
assert(isInitialized() &&
"trying to access value of uninitialized target slot");
return *value;
}

Expand Down

0 comments on commit e2cfca0

Please sign in to comment.