mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-12 01:43:14 +01:00
Fix a failure in runnable/funclit.d
This commit is contained in:
@@ -8483,7 +8483,9 @@ Expression *DelegateExp::semantic(Scope *sc)
|
||||
if (!type)
|
||||
{
|
||||
e1 = e1->semantic(sc);
|
||||
#if IN_LLVM
|
||||
#if 0
|
||||
// With 2.064 this code creates failures in runnable/funclit.d
|
||||
// and runnable/functype.d. Without it, everything looks fine.
|
||||
// LDC we need a copy as we store the LLVM type in TypeFunction,
|
||||
// and delegate/members have different types for 'this'
|
||||
Type *funcType = func->type->syntaxCopy();
|
||||
|
||||
Reference in New Issue
Block a user