Skip to content
Commit 4b6aa6eb authored by Tobias Grosser's avatar Tobias Grosser
Browse files

Clear InsnToMemAcc map in ScopDetection after each runOnFunction



Otherwise, instructions in different functions that share the same pointer (due
to earlier modifications), might get assigned incorrect memory access
information (belonging to instructions in previous functions), which can result
in arbitrary memory corruption and assertion failures.

This fixes llvm.org/PR23160 and possibly also llvm.org/PR23167.

Note: InsnToMemAcc is a global variable that should never have existed in the
first place. We will clean this up in a subsequent patch.

Reported-by: default avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
Debugged-by: default avatarJohannes Doerfert <doerfert@cs.uni-saarland.de>
llvm-svn: 235254
parent 5df7c1a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment