[llvm] fb9f949 - [llvm-tapi-diff] Wrap empty string around StringLiteral NFC

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 23 11:41:35 PDT 2021


Author: Cyndy Ishida
Date: 2021-06-23T11:41:03-07:00
New Revision: fb9f9497dc013a0e8d41d24748fc142cb6f4081a

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

LOG: [llvm-tapi-diff] Wrap empty string around StringLiteral NFC

This prevents invalid implicit conversation which caused buildbot
failure.

Added: 
    

Modified: 
    llvm/tools/llvm-tapi-diff/DiffEngine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-tapi-
diff /DiffEngine.cpp b/llvm/tools/llvm-tapi-
diff /DiffEngine.cpp
index 481d35fce36a..ff60d52f5c65 100644
--- a/llvm/tools/llvm-tapi-
diff /DiffEngine.cpp
+++ b/llvm/tools/llvm-tapi-
diff /DiffEngine.cpp
@@ -63,7 +63,7 @@ DiffScalarVal<bool, AD_Diff_Scalar_Bool>::print(raw_ostream &OS,
 StringLiteral SymScalar::getSymbolNamePrefix(MachO::SymbolKind Kind) {
   switch (Kind) {
   case MachO::SymbolKind::GlobalSymbol:
-    return "";
+    return StringLiteral("");
   case MachO::SymbolKind::ObjectiveCClass:
     return ObjC2MetaClassNamePrefix;
   case MachO::SymbolKind ::ObjectiveCClassEHType:


        


More information about the llvm-commits mailing list