diff options
| author | David <daboross@daboross.net> | 2020-02-24 22:11:15 -0800 |
|---|---|---|
| committer | David Ross <daboross@daboross.net> | 2020-02-29 11:05:39 -0800 |
| commit | 453c5051476fab4d09f6d16bdbf37043c5c26a27 (patch) | |
| tree | d90987a52bbbba22159f2dcc5ba8e1c45a6ee82f /src/rustllvm/RustWrapper.cpp | |
| parent | f434c6e636eda6c6c4fe167eee5b2549f8524ec7 (diff) | |
| download | rust-453c5051476fab4d09f6d16bdbf37043c5c26a27.tar.gz rust-453c5051476fab4d09f6d16bdbf37043c5c26a27.zip | |
Replace ptr hashing with ptr casting
Implementes suggeseted changes by Centril. This checks whether the memory location of the cast remains the same after atttempting to parse a postfix operator after a cast has been parsed. If the address is not the same, an illegal postfix operator was parsed. Previously the code generated a hash of the pointer, which was overly complex and inefficent. Casting the pointers and comparing them is simpler and more effcient.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
