aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-11-01 14:49:58 +0100
committerNikita Popov <npopov@redhat.com>2023-11-01 14:52:50 +0100
commitc7f0e499158fa4471ac86af46e13f45ccbfba399 (patch)
tree41fdd7248b2bdeb243689eed3f549c9e5f0bb12a /clang/lib/Frontend/CompilerInvocation.cpp
parent128b3b61fe6768c724975fd1df2be0abec848cf6 (diff)
downloadllvm-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