Commit 7bb4a01
committed
Fix sanitizer failure
I added the insertion point guard "just to be safe" and never removed
it. There isn't insertion point guarding on the other route out of this
function and we do not preserve the insertion point around getFiniBB
either so it is not needed here.
The problem flagged by the sanitizers was because the saved insertion
point pointed to an instruction which was then removed inside the FiniCB
for some clang codegen functions. The instruction was freed when it was
removed. Then accessing it to restore the insertion point was a use
after free bug.1 parent 9e92590 commit 7bb4a01
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
0 commit comments