mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-01 10:03:30 +01:00
Remove superfluous Expression::toConstElem overrides.
The error message can be printed by the non-overridden Expression::toConstElem just as well.
This commit is contained in:
17
gen/toir.cpp
17
gen/toir.cpp
@@ -3206,17 +3206,14 @@ STUB(SymbolExp)
|
||||
STUB(PowExp)
|
||||
STUB(PowAssignExp)
|
||||
|
||||
#define CONSTSTUB(x) LLConstant* x::toConstElem(IRState * p) { \
|
||||
error("expression '%s' is not a constant", toChars()); \
|
||||
if (!global.gag) \
|
||||
fatal(); \
|
||||
return NULL; \
|
||||
llvm::Constant* Expression::toConstElem(IRState * p)
|
||||
{
|
||||
error("expression '%s' is not a constant", toChars());
|
||||
if (!global.gag)
|
||||
fatal();
|
||||
return NULL;
|
||||
}
|
||||
CONSTSTUB(Expression)
|
||||
CONSTSTUB(GEPExp)
|
||||
CONSTSTUB(SliceExp)
|
||||
CONSTSTUB(IndexExp)
|
||||
CONSTSTUB(AssocArrayLiteralExp)
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user