llvm: add static_cast to MDMap return

This commit is contained in:
Paul Walker 2020-11-09 13:34:20 +00:00
parent 4db99f4012
commit ea26c47ac6

View File

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