summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/xray/xray_fdr_logging_impl.h
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-04-06 11:27:53 +0000
committerDean Michael Berris <dberris@google.com>2017-04-06 11:27:53 +0000
commitd41c5ffc3e8e42605d361572f63b33ab901c8157 (patch)
tree2930b35660eb7997c05288229b00266d4338749d /compiler-rt/lib/xray/xray_fdr_logging_impl.h
parent266f8f8d4c53f681293e7ec65bf566f4141b4708 (diff)
downloadbcm5719-llvm-d41c5ffc3e8e42605d361572f63b33ab901c8157.tar.gz
bcm5719-llvm-d41c5ffc3e8e42605d361572f63b33ab901c8157.zip
[XRay][compiler-rt] Remove unused local variable
The local was only referenced in assertions. Follow-up to D31345. llvm-svn: 299644
Diffstat (limited to 'compiler-rt/lib/xray/xray_fdr_logging_impl.h')
-rw-r--r--compiler-rt/lib/xray/xray_fdr_logging_impl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/xray/xray_fdr_logging_impl.h b/compiler-rt/lib/xray/xray_fdr_logging_impl.h
index 0867227f1bf..20e89d6c12b 100644
--- a/compiler-rt/lib/xray/xray_fdr_logging_impl.h
+++ b/compiler-rt/lib/xray/xray_fdr_logging_impl.h
@@ -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) {
OpenPOWER on IntegriCloud