Fix a failure in runnable/funclit.d

This commit is contained in:
Kai Nacke
2013-12-03 12:33:47 +01:00
parent 08e31123e5
commit 133ae1b2c8

View File

@@ -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();