diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index bee609e28487a3877be9db5e5bccd23f03274573..1bfdde5e6606fc7dfb72f738020ecee68a9a2f6d 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -521,13 +521,13 @@ static BaseDefiningValueResult findBaseDefiningValue(Value *I) { return BaseDefiningValueResult( ConstantPointerNull::get(cast(I->getType())), true); } -#ifndef ARK_GC_SUPPORT +#ifdef ARK_GC_SUPPORT // inttoptrs in an integral address space are currently ill-defined. We // treat them as defining base pointers here for consistency with the // constant rule above and because we don't really have a better semantic // to give them. Note that the optimizer is always free to insert undefined // behavior on dynamically dead paths as well. - // issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5L2AP?from=project-issue + // Associate LLVM issue:https://reviews.llvm.org/D103492 if (isa(I)) return BaseDefiningValueResult(I, true); #endif