Skip to content

Conversation

ChrisCummins
Copy link
Contributor

Use the WriteBitcodeToFile() function rather than BitcodeWriter::writeMethod() method to prevent a debugging assertion. Thanks @sogartar for reporting this.

Fixes #514.

@ChrisCummins ChrisCummins added this to the v0.2.2 milestone Dec 13, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 13, 2021
@ChrisCummins ChrisCummins changed the title [llvm] Fix invalidate use of BitcodeWriter API. [llvm] Fix invalid use of BitcodeWriter API. Dec 13, 2021
Chris Cummins and others added 2 commits December 13, 2021 18:10
Use the WriteBitcodeToFile() function rather than
BitcodeWriter::writeMethod() method to prevent a debugging assertion.

Issue facebookresearch#514.
@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2021

Codecov Report

Merging #515 (085e79c) into development (dae6434) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #515      +/-   ##
===============================================
+ Coverage        87.44%   87.45%   +0.01%     
===============================================
  Files              113      113              
  Lines             6403     6403              
===============================================
+ Hits              5599     5600       +1     
+ Misses             804      803       -1     
Impacted Files Coverage Δ
compiler_gym/envs/llvm/llvm_benchmark.py 90.69% <0.00%> (-2.33%) ⬇️
compiler_gym/service/connection.py 78.04% <0.00%> (-0.68%) ⬇️
compiler_gym/envs/gcc/service/gcc_service.py 97.08% <0.00%> (+0.36%) ⬆️
...loop_tool/service/loop_tool_compilation_session.py 89.93% <0.00%> (+3.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dae6434...085e79c. Read the comment docs.

@ChrisCummins ChrisCummins merged commit 283941e into facebookresearch:development Dec 14, 2021
@ChrisCummins ChrisCummins deleted the bitcode-writer branch December 14, 2021 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assert fails in llvm::BitcodeWriter::~BitcodeWriter() during some tests
3 participants