Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary ::Union{} type asserts #35817

Merged
merged 2 commits into from
Dec 29, 2020
Merged

remove unnecessary ::Union{} type asserts #35817

merged 2 commits into from
Dec 29, 2020

Conversation

KristofferC
Copy link
Member

Are these here for documentation purposes? Could rename the functions as throw_... something instead then.

@StefanKarpinski
Copy link
Member

I think they were there for performance reasons. Renaming to throw_ would be good though.

@KristofferC
Copy link
Member Author

KristofferC commented May 11, 2020

I didn't notice any difference in generated code. Only some instructions that converted the type assert was gone in the PR version (these where in dead code though). So I don't think there is a performance reason anymore at least.

Copy link
Member

@Keno Keno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I agree these could be renamed to something indicating that they are error checks, or throw functions respectively.

@KristofferC
Copy link
Member Author

Updated the names.

Copy link
Member

@Sacha0 Sacha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kristoffer! :)

@Sacha0
Copy link
Member

Sacha0 commented Dec 29, 2020

The package_win32 failure appears unrelated

make[1]: Entering directory '/cygdrive/c/buildbot/worker/package_win32/build/deps'
[ ! -e /cygdrive/c/buildbot/worker/package_win32/build/usr/manifest/llvm-tools ] || make uninstall-llvm-tools
/cygdrive/c/buildbot/worker/package_win32/build/deps/tools/jlchecksum /tmp/srccache/LLVM.v11.0.0+6.i686-w64-mingw32-cxx11.tar.gz
mkdir -p /cygdrive/c/buildbot/worker/package_win32/build/usr
/usr/bin/tar -xmzf /tmp/srccache/LLVM.v11.0.0+6.i686-w64-mingw32-cxx11.tar.gz -C /cygdrive/c/buildbot/worker/package_win32/build/usr
echo 'LLVM.v11.0.0+6.i686-w64-mingw32-cxx11 bb-uninstaller' > /cygdrive/c/buildbot/worker/package_win32/build/usr/manifest/llvm-tools
make[1]: Leaving directory '/cygdrive/c/buildbot/worker/package_win32/build/deps'
 ==> ./julia binary sizes
/cygdrive/c/buildbot/worker/package_win32/build/usr/tools/llvm-size.exe -A `cygpath -w /cygdrive/c/buildbot/worker/package_win32/build/usr/lib/julia/sys.dll` `cygpath -w /cygdrive/c/buildbot/worker/package_win32/build/usr/bin/libjulia.dll` `cygpath -w /cygdrive/c/buildbot/worker/package_win32/build/usr/bin/julia.exe`
C:/buildbot/worker/package_win32/build/usr/tools/llvm-size.exe: error while loading shared libraries: LLVM.dll: cannot open shared object file: No such file or directory
make: *** [Makefile:566: build-stats] Error 127
program finished with exit code 2

@KristofferC KristofferC merged commit 345ce78 into master Dec 29, 2020
@KristofferC KristofferC deleted the kc/remove_union branch December 29, 2020 17:01
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
* remove unnecessary ::Union{} type asserts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants