summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CaptureTracking.cpp
diff options
context:
space:
mode:
authorDaniel Neilson <dneilson@azul.com>2018-04-24 21:12:45 +0000
committerDaniel Neilson <dneilson@azul.com>2018-04-24 21:12:45 +0000
commit3c148720faa8c4dbc76fde108a3e21f211c32d8a (patch)
treeaefc9aa78dd88691e24b35c358f5fac6613b5057 /llvm/lib/Analysis/CaptureTracking.cpp
parent54795bb16b9343209b0f085dcea995bae4f76af6 (diff)
downloadbcm5719-llvm-3c148720faa8c4dbc76fde108a3e21f211c32d8a.tar.gz
bcm5719-llvm-3c148720faa8c4dbc76fde108a3e21f211c32d8a.zip
[CaptureTracking] Fixup const correctness of DomTree arg (NFC)
Summary: The PointerMayBeCapturedBefore function's DomTree arg should be const instead of non-const. There are no non-const uses of it in the function. llvm-svn: 330769
Diffstat (limited to 'llvm/lib/Analysis/CaptureTracking.cpp')
-rw-r--r--llvm/lib/Analysis/CaptureTracking.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index 3b0026ba10e..6566c7a5e0f 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/lib/Analysis/CaptureTracking.cpp
@@ -60,7 +60,7 @@ namespace {
/// as the given instruction and the use.
struct CapturesBefore : public CaptureTracker {
- CapturesBefore(bool ReturnCaptures, const Instruction *I, DominatorTree *DT,
+ CapturesBefore(bool ReturnCaptures, const Instruction *I, const DominatorTree *DT,
bool IncludeI, OrderedBasicBlock *IC)
: OrderedBB(IC), BeforeHere(I), DT(DT),
ReturnCaptures(ReturnCaptures), IncludeI(IncludeI), Captured(false) {}
@@ -140,7 +140,7 @@ namespace {
OrderedBasicBlock *OrderedBB;
const Instruction *BeforeHere;
- DominatorTree *DT;
+ const DominatorTree *DT;
bool ReturnCaptures;
bool IncludeI;
@@ -184,7 +184,7 @@ bool llvm::PointerMayBeCaptured(const Value *V,
/// queries about relative order among instructions in the same basic block.
bool llvm::PointerMayBeCapturedBefore(const Value *V, bool ReturnCaptures,
bool StoreCaptures, const Instruction *I,
- DominatorTree *DT, bool IncludeI,
+ const DominatorTree *DT, bool IncludeI,
OrderedBasicBlock *OBB) {
assert(!isa<GlobalValue>(V) &&
"It doesn't make sense to ask whether a global is captured.");
OpenPOWER on IntegriCloud