llvm: fix error compiling with recent gcc

Solution from https://github.com/digego/extempore/issues/318
This commit is contained in:
Ian Douglas Scott 2019-01-26 14:09:20 -08:00
parent 4db99f4012
commit 912f67a8dc
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959

View File

@ -101,7 +101,7 @@ public:
~ValueMap() {}
bool hasMD() const { return MDMap; }
bool hasMD() const { return bool(MDMap); }
MDMapT &MD() {
if (!MDMap)
MDMap.reset(new MDMapT);