Move Expression::discardValue into a free function
Merge pull request #3233 from yebblies/discardvalue

[DDMD] [refactor] Move Expression::discardValue into a free function
Fix Issue 12095 - Wrong code with -O -inline
Fix inliner bug that manifests on 12095's test case