Add comment to ExecutionTrace::IsPseudoFunction()
authorAleksei Vereshchagin <avereschagin@dev.rtsoft.ru>
Mon, 11 Dec 2017 17:25:19 +0000 (20:25 +0300)
committerAleksei Vereshchagin <avereschagin@dev.rtsoft.ru>
Mon, 11 Dec 2017 17:25:19 +0000 (20:25 +0300)
src/trace/traceinlines.h

index ab581ca034dc00477125137cc1fa1536f141c550..eda42a8eb9f423cd77b75f38eb0966bbe1409d0d 100644 (file)
@@ -48,6 +48,8 @@ bool ExecutionTrace::IsPseudoFunction(
     _ASSERTE(m_pJitFunctionInfo != nullptr);
     _ASSERTE(m_pJitFunctionInfo->internalId.id == 1);
 
+    // NOTE: funcInfo.internalId.id is always nonnegative, but whole range is
+    // checked to be more explicite.
     return funcInfo.internalId.id >= 0 && funcInfo.internalId.id <= 1;
 }