Skip to content

fix: prevent abort when Value is ConstantData#1830

Merged
yuleisui merged 1 commit into
SVF-tools:masterfrom
Khosro-Moeini:bug-fix
Jun 1, 2026
Merged

fix: prevent abort when Value is ConstantData#1830
yuleisui merged 1 commit into
SVF-tools:masterfrom
Khosro-Moeini:bug-fix

Conversation

@Khosro-Moeini

Copy link
Copy Markdown
Contributor

As per llvm/llvm-project@9383fb2, LLVM 21 no longer permits the inspection of users of ConstantData. I encountered two crashes due to this change.

I added checks to guard the two calls that caused the crashes.

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.45%. Comparing base (5c45081) to head (e83f846).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1830   +/-   ##
=======================================
  Coverage   64.44%   64.45%           
=======================================
  Files         252      252           
  Lines       25208    25210    +2     
  Branches     4768     4768           
=======================================
+ Hits        16246    16248    +2     
  Misses       8962     8962           
Files with missing lines Coverage Δ
svf-llvm/lib/ObjTypeInference.cpp 95.10% <100.00%> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuleisui yuleisui merged commit e0377d5 into SVF-tools:master Jun 1, 2026
5 checks passed
@yuleisui

yuleisui commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fix. It would be good to check any other places of the uses of constantdata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants