aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/FormatToken.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-02-12 13:50:37 +0000
committerGitHub <noreply@github.com>2024-02-12 13:50:37 +0000
commitafa413a132c0959295df36c28814ee83948e4931 (patch)
tree60ca2e201414ecbeca05e2d8619be92ed8b6f9b2 /clang/lib/Format/FormatToken.cpp
parent8373ceef8f2ee377d6daf884e2f3ea11408a7fe2 (diff)
downloadllvm-afa413a132c0959295df36c28814ee83948e4931.zip
llvm-afa413a132c0959295df36c28814ee83948e4931.tar.gz
llvm-afa413a132c0959295df36c28814ee83948e4931.tar.bz2
[RemoveDIs][DebugInfo] Correctly visit DPValues in StackInfoBuilder::visit (#81247)
In `StackInfoBuilder::visit(Instruction &Inst)`, operations are performed on memory-related instructions, including debug intrinsics that refer to "interesting" allocas. There is a block that also visits DPValues attached to the instruction, but this block is near the end of the function; this has two problems: 1. The DPValues attached to an instruction precede that instruction, so they should always be processed before the instruction itself. 2. More importantly, some of the paths for visiting other instructions contain early returns, which will result in the DPValues not being visited at all. This patch simply moves the DPValue-visiting block to the top of the function, which should resolve both of these problems.
Diffstat (limited to 'clang/lib/Format/FormatToken.cpp')
0 files changed, 0 insertions, 0 deletions