From a44c4d218316af08953db8bf579c11b17caecd82 Mon Sep 17 00:00:00 2001 From: songzhengchao Date: Mon, 15 Aug 2022 09:18:19 +0800 Subject: [PATCH] bug fix rewritegcpass issue:https://gitee.com/open_harmony/dashboard?issue_id=I5M8KQ Signed-off-by: songzhengchao --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index bee609e28487..1bfdde5e6606 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 -- Gitee