# HG changeset patch # User Christian Kamm # Date 1229760931 -3600 # Node ID 5e5873d847f6b6a5112de55757388286f1e4baa2 # Parent 2025c9a24efd54db656c42d528f36923c372f1f3 Add missing overrides for toConstExp to dmd2/expression.h. Fixes #156. diff -r 2025c9a24efd -r 5e5873d847f6 dmd2/expression.h --- a/dmd2/expression.h Sat Dec 20 09:13:44 2008 +0100 +++ b/dmd2/expression.h Sat Dec 20 09:15:31 2008 +0100 @@ -1080,6 +1080,9 @@ int inlineCost(InlineCostState *ics); Expression *doInline(InlineDoState *ids); Expression *inlineScan(InlineScanState *iss); + + // LDC + virtual llvm::Constant *toConstElem(IRState *irs); }; struct ArrayLengthExp : UnaExp @@ -1154,6 +1157,9 @@ void scanForNestedRef(Scope *sc); elem *toElem(IRState *irs); + + // LDC + virtual llvm::Constant *toConstElem(IRState *irs); }; /* For both i++ and i-- @@ -1565,6 +1571,7 @@ Expression *toLvalue(Scope *sc, Expression *e); elem *toElem(IRState *irs); + llvm::Constant *toConstElem(IRState *irs); }; #endif