mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIBUTE_UNUSED. [-Wunused-function]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
572d35cc19
commit
2aabd71b8a
@ -300,7 +300,7 @@ analyzeParsePointLiveness(DominatorTree &DT, const CallSite &CS,
|
||||
}
|
||||
|
||||
/// True iff this value is the null pointer constant (of any pointer type)
|
||||
static bool isNullConstant(Value *V) {
|
||||
static bool LLVM_ATTRIBUTE_UNUSED isNullConstant(Value *V) {
|
||||
return isa<Constant>(V) && isa<PointerType>(V->getType()) &&
|
||||
cast<Constant>(V)->isNullValue();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user