Bug handling (void) casts

In my continuing attempts to compile my old basic interpeter i have got on to the next failure:

void f();

void g(){
    1 ? f() : (void)0;
}

I'm just sending this to the list on the off chance it's already known about, the trace is as follows:
Assertion failed: (getType() != Type::VoidTy && "Cannot assign a name to void values!"), function setName, file Value.cpp, line 151.
0 clang 0x001fb4b5 _ZN40_GLOBAL__N_Signals.cpp_00000000_06AE939215PrintStackTraceEv + 45
1 clang 0x001fb85b _ZN40_GLOBAL__N_Signals.cpp_00000000_06AE939213SignalHandlerEi + 323
2 libSystem.B.dylib 0x9680a97b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libSystem.B.dylib 0x96883782 raise + 26
5 libSystem.B.dylib 0x96892d3f abort + 73
6 libSystem.B.dylib 0x96884923 __assert_rtn + 101
7 clang 0x001b0ddb _ZN4llvm5Value7setNameEPKcj + 149
8 clang 0x001b1200 _ZN4llvm5Value7setNameERKSs + 58
9 clang 0x0003cd1a _ZN4llvm7PHINodeC2EPKNS_4TypeERKSsPNS_11InstructionE + 106
10 clang 0x0003cd46 _ZN4llvm7PHINodeC1EPKNS_4TypeERKSsPNS_11InstructionE + 38
11 clang 0x00043bf0 _ZN4llvm11LLVMBuilder9CreatePHIEPKNS_4TypeEPKc + 88
12 clang 0x0004182f _ZN5clang7CodeGen15CodeGenFunction14EmitScalarExprEPKNS_4ExprE + 1187
13 clang 0x00045cfe _ZN5clang11StmtVisitorIN45_GLOBAL__N_CGExprScalar.cpp_00000000_104F220417ScalarExprEmitterEPN4llvm5ValueEE5VisitEPNS_4StmtE + 3036
14 clang 0x00041417 _ZN5clang7CodeGen15CodeGenFunction14EmitScalarExprEPKNS_4ExprE + 139
15 clang 0x00046e88 _ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtE + 244
16 clang 0x00048514 _ZN5clang7CodeGen15CodeGenFunction16EmitCompoundStmtERKNS_12CompoundStmtEbPN4llvm5ValueEb + 152
17 clang 0x00046f5c _ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtE + 456
18 clang 0x00049a22 _ZN5clang7CodeGen15CodeGenFunction12GenerateCodeEPKNS_12FunctionDeclE + 898
19 clang 0x0004a801 _ZN5clang7CodeGen13CodeGenModule12EmitFunctionEPKNS_12FunctionDeclE + 71
20 clang 0x000548e4 _ZN5clang7CodeGen15CodeGenFunctionEPNS0_13CodeGenModuleEPNS_12FunctionDeclE + 24
21 clang 0x00006134 _ZN45_GLOBAL__N_ASTConsumers.cpp_00000000_9D6638BA11LLVMEmitter18HandleTopLevelDeclEPN5clang4DeclE + 76
22 clang 0x00067828 _ZN5clang8ParseASTERNS_12PreprocessorEjPNS_11ASTConsumerEb + 258
23 clang 0x00026a12 _ZNSsC1IN9__gnu_cxx17__normal_iteratorIPcSsEEEET_S4_RKSaIcE + 1828
24 clang 0x000288be main + 966
25 clang 0x0000249e start + 54

--Oliver

Fixed. This one was obvious, but please include what command you're using if you see a crash, thanks!

-Chris