Index: src/IceOperand.cpp |
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp |
index 26ef83089a064191b569fa88b0b34effbe4c94bc..4eaa297e3594d5cb85e9dd1424c47fda06b00f02 100644 |
--- a/src/IceOperand.cpp |
+++ b/src/IceOperand.cpp |
@@ -275,7 +275,7 @@ const Inst *VariableTracking::getSingleDefinition() const { |
void VariablesMetadata::init() { |
static TimerIdT IDvmetadata = GlobalContext::getTimerID("vmetadata"); |
- TimerMarker T(IDvmetadata, Func->getContext()); |
+ TimerMarker T(IDvmetadata, Func); |
Metadata.clear(); |
Metadata.resize(Func->getNumVariables()); |
@@ -434,7 +434,7 @@ void LiveRange::dump(Ostream &Str) const { |
Str << "(weight=" << Weight << ") "; |
bool First = true; |
for (const RangeElementType &I : Range) { |
- if (First) |
+ if (!First) |
Str << ", "; |
First = false; |
Str << "[" << I.first << ":" << I.second << ")"; |