-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Patch to further fix building julia with llvm-svn #22015
Conversation
src/llvm-lower-handlers.cpp
Outdated
@@ -107,15 +107,22 @@ static void ensure_enter_function(Module &M) | |||
} | |||
|
|||
bool LowerExcHandlers::doInitialization(Module &M) { | |||
auto T_pint8 = Type::getInt8PtrTy(M.getContext(), 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon and wierd indent...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also go into the if JL_LLVM_VERSION block below.
src/llvm-lower-handlers.cpp
Outdated
@@ -107,15 +107,22 @@ static void ensure_enter_function(Module &M) | |||
} | |||
|
|||
bool LowerExcHandlers::doInitialization(Module &M) { | |||
auto T_pint8 = Type::getInt8PtrTy(M.getContext(), 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also go into the if JL_LLVM_VERSION block below.
src/llvm-lower-handlers.cpp
Outdated
lifetime_end = Intrinsic::getDeclaration(&M, Intrinsic::lifetime_end); | ||
|
||
#if JL_LLVM_VERSION >= 50000 | ||
auto lifetime_start = Intrinsic::getDeclaration(&M, Intrinsic::lifetime_start, { T_pint8 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the auto
.
Fixes #21720 (comment) but still doesn't fix the DICompile issue in #21879 (Credits: @Keno)