about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-01-17 17:25:47 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-01-17 17:25:47 +0530
commit48a7651073c851e6c04e6cca52b9198480b52b98 (patch)
tree8a3cda8425b3bb2d6d3de0a065204267e4176763 /src/rustllvm/RustWrapper.cpp
parent87608746f0c70b733f76eb5e8ff1d3346db63d3e (diff)
parentf10af2e5fa505a217f7b22591b29953e9c75d835 (diff)
downloadrust-48a7651073c851e6c04e6cca52b9198480b52b98.tar.gz
rust-48a7651073c851e6c04e6cca52b9198480b52b98.zip
Rollup merge of #30938 - dotdash:zst_void, r=eddyb
The only way to get a value for a zero-sized type is `undef`, so
there's really no point in actually having a return type other than
void for such types. Also, while the comment in return_type_is_void
mentioned something about aiding C ABI support, @eddyb correctly
pointed out on IRC that there is no such thing as a zero-sized type in
C. And even with clang, which allows empty structs, those get
translated as void return types as well.

Fixes #28766
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions