Commit 00ca8093 authored by Nikita Popov's avatar Nikita Popov
Browse files

[ConstantFold] Fix comparison between special pointer constants

This code was assuming that the LHS would always be one of
GlobalVariable, BlockAddress or ConstantExpr. However, it can
also be a special constant like dso_local_equivalent or no_cfi.
Make sure this is handled gracefully.
parent c9bdeabd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment