diff --git a/lib/Dialect/QCS/Utils/ParameterInitialValueAnalysis.cpp b/lib/Dialect/QCS/Utils/ParameterInitialValueAnalysis.cpp index 321696152..62b064905 100644 --- a/lib/Dialect/QCS/Utils/ParameterInitialValueAnalysis.cpp +++ b/lib/Dialect/QCS/Utils/ParameterInitialValueAnalysis.cpp @@ -63,7 +63,7 @@ ParameterInitialValueAnalysis::ParameterInitialValueAnalysis( if (!parameterLoadOp) continue; - double initialValue = + const double initialValue = std::get(parameterLoadOp.getInitialValue()); initialValues_[parameterLoadOp.getParameterName()] = initialValue; foundParameters = true;