diff --git a/llvm/tools/sycl-post-link/CompileTimePropertiesPass.h b/llvm/tools/sycl-post-link/CompileTimePropertiesPass.h index 15b3896472716..6a8e26dbbd9a1 100644 --- a/llvm/tools/sycl-post-link/CompileTimePropertiesPass.h +++ b/llvm/tools/sycl-post-link/CompileTimePropertiesPass.h @@ -63,7 +63,7 @@ inline bool hasProperty(const Attribute &Attr) { template Int getAttributeAsInteger(const Attribute &Attr) { assert(Attr.isStringAttribute() && "The attribute Attr must be a string attribute"); - Int Value; + Int Value = 0; bool Error = Attr.getValueAsString().getAsInteger(10, Value); assert(!Error && "The attribute's value is not a number"); (void)Error;