about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid <daboross@daboross.net>2020-02-24 22:11:15 -0800
committerDavid Ross <daboross@daboross.net>2020-02-29 11:05:39 -0800
commit453c5051476fab4d09f6d16bdbf37043c5c26a27 (patch)
treed90987a52bbbba22159f2dcc5ba8e1c45a6ee82f /src/rustllvm/RustWrapper.cpp
parentf434c6e636eda6c6c4fe167eee5b2549f8524ec7 (diff)
downloadrust-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