]> granicus.if.org Git - clang/commitdiff
Simplify or remove calls to makeArrayRef based on feedback from David Blaikie. NFC.
authorCraig Topper <craig.topper@gmail.com>
Tue, 29 Sep 2015 04:53:28 +0000 (04:53 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 29 Sep 2015 04:53:28 +0000 (04:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248776 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/ThreadSafetyTIL.h
lib/Serialization/ASTWriterDecl.cpp

index e4b8d478d7943d6ece808d754f098692014cb466..98649991338c79bbc7d3e88d9af7cb0189d59c39 100644 (file)
@@ -1395,7 +1395,7 @@ public:
 
   /// Return the list of basic blocks that this terminator can branch to.
   ArrayRef<BasicBlock*> successors() {
-    return llvm::makeArrayRef(TargetBlock);
+    return TargetBlock;
   }
 
   template <class V>
@@ -1445,7 +1445,7 @@ public:
 
   /// Return the list of basic blocks that this terminator can branch to.
   ArrayRef<BasicBlock*> successors() {
-    return llvm::makeArrayRef(Branches);
+    return Branches;
   }
 
   template <class V>
index 7a54f5a03bc44be0a105e0f89923bfce3eb34190..3379f9c455f634f6dd528e949faf53ae77f1ad83 100644 (file)
@@ -208,7 +208,7 @@ namespace clang {
       auto &&PartialSpecializations = getPartialSpecializations(Common);
       ArrayRef<DeclID> LazySpecializations;
       if (auto *LS = Common->LazySpecializations)
-        LazySpecializations = llvm::makeArrayRef(LS + 1, LS + 1 + LS[0]);
+        LazySpecializations = llvm::makeArrayRef(LS + 1, LS[0]);
 
       // Add a slot to the record for the number of specializations.
       unsigned I = Record.size();