From: Dean Michael Berris Date: Mon, 10 Sep 2018 02:57:05 +0000 (+0000) Subject: [XRay] Remove unused reference X-Git-Tag: llvmorg-8.0.0-rc1~9137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3a3679e72617f7ae56780f25b6d0248b7665d38;p=platform%2Fupstream%2Fllvm.git [XRay] Remove unused reference The reference was only used in the assertion. Follow-up on D51723. llvm-svn: 341771 --- diff --git a/llvm/lib/XRay/BlockVerifier.cpp b/llvm/lib/XRay/BlockVerifier.cpp index 3bd1190..62be1a8 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),