diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-22 16:35:56 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-22 16:35:56 +0000 |
commit | 42526d33728a9a374af539c35a8d3c12064b44cf (patch) | |
tree | 2bf2c6c0877da85920394eae041a54470c39abe2 /llvm/lib/Transforms | |
parent | 8f509a7044e588bc74ed6d1b3256dab3915c550f (diff) | |
download | bcm5719-llvm-42526d33728a9a374af539c35a8d3c12064b44cf.tar.gz bcm5719-llvm-42526d33728a9a374af539c35a8d3c12064b44cf.zip |
Use ArrayRef instead of pointer and size. NFC
llvm-svn: 251029
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index e0879423996..9b19732acfc 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -2945,8 +2945,7 @@ static bool AddReachableCodeToWorklist(BasicBlock *BB, const DataLayout &DL, // of the function down. This jives well with the way that it adds all uses // of instructions to the worklist after doing a transformation, thus avoiding // some N^2 behavior in pathological cases. - ICWorklist.AddInitialGroup(&InstrsForInstCombineWorklist[0], - InstrsForInstCombineWorklist.size()); + ICWorklist.AddInitialGroup(InstrsForInstCombineWorklist); return MadeIRChange; } |