Commit 097fef2
authored
[SPIRV] Fix asan failure (llvm#138695)
When the DataLayout is destroyed, the memory backing `Offsets` is
released. This causes a use after free.
To fix it, I added a DataLayout varible that will not be destroyed until
after Offsets is used.
Fixes asan failure caused by
llvm#1357891 parent 57e8899 commit 097fef2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | | - | |
2066 | | - | |
| 2065 | + | |
| 2066 | + | |
2067 | 2067 | | |
2068 | 2068 | | |
2069 | 2069 | | |
| |||
0 commit comments