OSDN Git Service

[ConstantRange] Add std::move to a bunch of places that pass local APInts to Constant...
authorCraig Topper <craig.topper@gmail.com>
Sat, 29 Apr 2017 06:40:47 +0000 (06:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 29 Apr 2017 06:40:47 +0000 (06:40 +0000)
commit9a418e88edcdf41e125db6b957299baf1e8b6ef4
tree8418e32090870793bd1a10d31f3992db160b30de
parente85efcfd884aa7de9868d9daaa382c93f0133a3f
[ConstantRange] Add std::move to a bunch of places that pass local APInts to ConstantRange constructor.

The ConstantRange constructor takes APInt by value so without these moves we are making copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantRange.cpp