wpan11nv commented on a change in pull request #4923: [LLVM] Fix build breaks 
with StringRef changes
URL: https://github.com/apache/incubator-tvm/pull/4923#discussion_r383403902
 
 

 ##########
 File path: src/target/llvm/llvm_module.cc
 ##########
 @@ -239,7 +239,7 @@ class LLVMModuleNode final : public runtime::ModuleNode {
     if (mtarget != nullptr) {
       llvm::MDString* pstr = llvm::dyn_cast<llvm::MDString>(mtarget);
       CHECK(pstr != nullptr);
-      target_ = pstr->getString();
+      target_ = pstr->getString().str();
 
 Review comment:
   They are the same:
   
   
https://github.com/llvm-mirror/llvm/blob/master/include/llvm/ADT/StringRef.h#L260
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to