-
-
Notifications
You must be signed in to change notification settings - Fork 267
Fix compilation with LLVM11 #3322
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
Changes from all commits
697bf63
f9495fa
10d6110
e9561e1
df65407
9e454c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,7 +231,7 @@ class ArrayFI : public TypeInfoFI { | |
} | ||
|
||
Value *promote(CallSite CS, IRBuilder<> &B, const Analysis &A) override { | ||
IRBuilder<> Builder = B; | ||
IRBuilder<> &Builder(B); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hence this change and the one below. I'm pretty sure this is not the right fix but I'm not sure what is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't make a copy, then we should just use |
||
// If the allocation is of constant size it's best to put it in the | ||
// entry block, so do so if we're not already there. | ||
// For dynamically-sized allocations it's best to avoid the overhead | ||
|
@@ -360,7 +360,7 @@ class UntypedMemoryFI : public FunctionInfo { | |
} | ||
|
||
Value *promote(CallSite CS, IRBuilder<> &B, const Analysis &A) override { | ||
IRBuilder<> Builder = B; | ||
IRBuilder<> &Builder = B; | ||
// If the allocation is of constant size it's best to put it in the | ||
// entry block, so do so if we're not already there. | ||
// For dynamically-sized allocations it's best to avoid the overhead | ||
|
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.
IRBuilder
had its copy constructor deleted...