[Mlir-commits] [mlir] ad1fe39 - [MLIR] Fix gcc5 in D89161

Rob Suderman llvmlistbot at llvm.org
Thu Oct 15 17:03:41 PDT 2020


Author: Rob Suderman
Date: 2020-10-15T17:03:06-07:00
New Revision: ad1fe3963f30d0e7ef6796ad90bd4ddb6f7b117b

URL: https://github.com/llvm/llvm-project/commit/ad1fe3963f30d0e7ef6796ad90bd4ddb6f7b117b
DIFF: https://github.com/llvm/llvm-project/commit/ad1fe3963f30d0e7ef6796ad90bd4ddb6f7b117b.diff

LOG: [MLIR] Fix gcc5 in D89161

Missing .str() makes gcc5 unable to infer the template to use.

Differential Revision: https://reviews.llvm.org/D89516

Added: 
    

Modified: 
    mlir/lib/TableGen/Pattern.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp
index 7044677fad36..4128936d4b7f 100644
--- a/mlir/lib/TableGen/Pattern.cpp
+++ b/mlir/lib/TableGen/Pattern.cpp
@@ -399,7 +399,7 @@ bool SymbolInfoMap::bindValue(StringRef symbol) {
 }
 
 bool SymbolInfoMap::bindAttr(StringRef symbol) {
-  auto inserted = symbolInfoMap.emplace(symbol, SymbolInfo::getAttr());
+  auto inserted = symbolInfoMap.emplace(symbol.str(), SymbolInfo::getAttr());
   return symbolInfoMap.count(inserted->first) == 1;
 }
 


        


More information about the Mlir-commits mailing list