[llvm] 48fb8ec - [ORC] Fix narrowing-in-initializer-list warnings.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 04:39:59 PDT 2021


Author: Lang Hames
Date: 2021-06-15T21:39:16+10:00
New Revision: 48fb8ecf443beb56e1c936bff83a241982c19c9a

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

LOG: [ORC] Fix narrowing-in-initializer-list warnings.

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h b/llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
index 0db40e2969aa..e834675b4b41 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
@@ -383,7 +383,7 @@ template <> class SPSSerializationTraits<SPSString, StringRef> {
     Data = IB.data();
     if (!IB.skip(Size))
       return false;
-    S = {Data, Size};
+    S = StringRef(Data, Size);
     return true;
   }
 };


        


More information about the llvm-commits mailing list