This is an archive of the discontinued LLVM Phabricator instance.

[ConstantRange] Respect destination bitwidth for cast results.
ClosedPublic

Authored by fhahn on Dec 27 2019, 8:35 AM.

Details

Summary

We returning a full set, we should use ResultBitWidth. Otherwise we might hit assertions when the resulting constant ranges are used later on.

Diff Detail

Event Timeline

fhahn created this revision.Dec 27 2019, 8:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2019, 8:35 AM
Herald added a subscriber: hiraditya. · View Herald Transcript

Unit tests: fail. 61130 tests passed, 1 failed and 728 were skipped.

failed: Clang.SemaOpenCL/numbered-address-space.cl

clang-tidy: fail. Please fix clang-tidy findings.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

nikic accepted this revision.Dec 27 2019, 8:49 AM
This revision is now accepted and ready to land.Dec 27 2019, 8:49 AM
This revision was automatically updated to reflect the committed changes.