aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2021-12-10 16:37:49 +0100
committerNikita Popov <npopov@redhat.com>2021-12-10 16:39:50 +0100
commit65bec04295f1f678977151454ce852ba61149ac8 (patch)
treef261797361d782a6160d68d7684fd39324caa5e5 /llvm/lib/Support/SourceMgr.cpp
parent5082c330138fd98a7be218e18eb30d78832dac3f (diff)
downloadllvm-65bec04295f1f678977151454ce852ba61149ac8.zip
llvm-65bec04295f1f678977151454ce852ba61149ac8.tar.gz
llvm-65bec04295f1f678977151454ce852ba61149ac8.tar.bz2
[ConstantFold] Handle same type in ConstantFoldLoadThroughBitcast
Usually the case where the types are the same ends up being handled fine because it's legal to do a trivial bitcast to the same type. However, this is not true for aggregate types. Short-circuit the whole code if the types match exactly to account for this.
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions