diff options
author | Nikita Popov <npopov@redhat.com> | 2023-11-01 14:49:58 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-11-01 14:52:50 +0100 |
commit | c7f0e499158fa4471ac86af46e13f45ccbfba399 (patch) | |
tree | 41fdd7248b2bdeb243689eed3f549c9e5f0bb12a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 128b3b61fe6768c724975fd1df2be0abec848cf6 (diff) | |
download | llvm-c7f0e499158fa4471ac86af46e13f45ccbfba399.zip llvm-c7f0e499158fa4471ac86af46e13f45ccbfba399.tar.gz llvm-c7f0e499158fa4471ac86af46e13f45ccbfba399.tar.bz2 |
[InstCombine] Fix canAlwaysEvaluateInTy() with constant exprs
The m_ZExtOrSExt / m_Trunc in the following code can match constant
expressions, which we don't want here. Make sure we bail out early
for non-immediate constants.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions