[llvm] 9bf5d91 - [GlobalISel] Silence gcc warning about unused variable
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 22:21:01 PDT 2021
Author: Mikael Holmen
Date: 2021-10-07T07:18:04+02:00
New Revision: 9bf5d91361655eaaea20006dc9a4a92d212323d2
URL: https://github.com/llvm/llvm-project/commit/9bf5d91361655eaaea20006dc9a4a92d212323d2
DIFF: https://github.com/llvm/llvm-project/commit/9bf5d91361655eaaea20006dc9a4a92d212323d2.diff
LOG: [GlobalISel] Silence gcc warning about unused variable
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index f33eac4f4a4f5..711006df0245f 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -3184,6 +3184,9 @@ bool IRTranslator::emitSPDescriptorParent(StackProtectorDescriptor &SPD,
// This path is currently untestable on GlobalISel, since the only platform
// that needs this seems to be Windows, and we fall back on that currently.
// The code still lives here in case that changes.
+ // Silence warning about unused variable until the code below that uses
+ // 'GuardCheckFn' is enabled.
+ (void)GuardCheckFn;
return false;
#if 0
// The target provides a guard check function to validate the guard value.
More information about the llvm-commits
mailing list