[compiler-rt] r299644 - [XRay][compiler-rt] Remove unused local variable
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 04:27:54 PDT 2017
Author: dberris
Date: Thu Apr 6 06:27:53 2017
New Revision: 299644
URL: http://llvm.org/viewvc/llvm-project?rev=299644&view=rev
Log:
[XRay][compiler-rt] Remove unused local variable
The local was only referenced in assertions.
Follow-up to D31345.
Modified:
compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h
Modified: compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h?rev=299644&r1=299643&r2=299644&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h (original)
+++ compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h Thu Apr 6 06:27:53 2017
@@ -594,7 +594,6 @@ static inline void processFunctionHook(
assert(ExpectedTailExit.RecordKind ==
uint8_t(FunctionRecord::RecordKinds::FunctionTailExit) &&
"Expected to find tail exit when rewinding.");
- auto TailExitFuncId = ExpectedTailExit.FuncId;
RewindingRecordPtr -= FunctionRecSize;
RewindingTSC -= ExpectedTailExit.TSCDelta;
AlignedFuncStorage FunctionEntryBuffer;
@@ -604,7 +603,7 @@ static inline void processFunctionHook(
assert(ExpectedFunctionEntry.RecordKind ==
uint8_t(FunctionRecord::RecordKinds::FunctionEnter) &&
"Expected to find function entry when rewinding tail call.");
- assert(ExpectedFunctionEntry.FuncId == TailExitFuncId &&
+ assert(ExpectedFunctionEntry.FuncId == ExpectedTailExit.FuncId &&
"Expected funcids to match when rewinding tail call.");
if ((TSC - RewindingTSC) < NumberOfTicksThreshold) {
More information about the llvm-commits
mailing list