OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c0b021
)
[Analysis] Remove duplicated std::move from LocRange constructor
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 6 May 2019 10:04:23 +0000
(10:04 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 6 May 2019 10:04:23 +0000
(10:04 +0000)
scan-build was reporting that we were referencing a moved variable - in fact we were moving it twice.....
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360025
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/LoopInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/LoopInfo.h
b/include/llvm/Analysis/LoopInfo.h
index
f62f200
..
adb497a
100644
(file)
--- a/
include/llvm/Analysis/LoopInfo.h
+++ b/
include/llvm/Analysis/LoopInfo.h
@@
-470,7
+470,7
@@
public:
public:
LocRange() {}
- LocRange(DebugLoc Start) : Start(
std::move(Start)), End(std::move(Start)
) {}
+ LocRange(DebugLoc Start) : Start(
Start), End(Start
) {}
LocRange(DebugLoc Start, DebugLoc End)
: Start(std::move(Start)), End(std::move(End)) {}