summaryrefslogtreecommitdiffstats
path: root/llvm/lib/XRay
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-09-10 02:57:05 +0000
committerDean Michael Berris <dberris@google.com>2018-09-10 02:57:05 +0000
commitf3a3679e72617f7ae56780f25b6d0248b7665d38 (patch)
tree9aed3637526e9a0c5058601735c558e7726fc825 /llvm/lib/XRay
parent72d27f5525f1fde0e95bcf74ec8f543ab96a36d9 (diff)
downloadbcm5719-llvm-f3a3679e72617f7ae56780f25b6d0248b7665d38.tar.gz
bcm5719-llvm-f3a3679e72617f7ae56780f25b6d0248b7665d38.zip
[XRay] Remove unused reference
The reference was only used in the assertion. Follow-up on D51723. llvm-svn: 341771
Diffstat (limited to 'llvm/lib/XRay')
-rw-r--r--llvm/lib/XRay/BlockVerifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/XRay/BlockVerifier.cpp b/llvm/lib/XRay/BlockVerifier.cpp
index 3bd1190006d..62be1a87ab5 100644
--- a/llvm/lib/XRay/BlockVerifier.cpp
+++ b/llvm/lib/XRay/BlockVerifier.cpp
@@ -112,9 +112,9 @@ Error BlockVerifier::transition(State To) {
return Error::success();
auto &Mapping = TransitionTable[number(CurrentRecord)];
- auto &From = Mapping.From;
auto &Destinations = Mapping.ToStates;
- assert(From == CurrentRecord && "BUG: Wrong index for record mapping.");
+ assert(Mapping.From == CurrentRecord &&
+ "BUG: Wrong index for record mapping.");
if ((Destinations & ToSet(mask(To))) == 0)
return createStringError(
std::make_error_code(std::errc::executable_format_error),
OpenPOWER on IntegriCloud