Skip to content

Commit ddf79de

Browse files
committed
[Asan] Fix -Wunused-private-field in non-assertion builds (NFC)
llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:650:13: error: private field 'OwnerFn' is not used [-Werror,-Wunused-private-field] Function *OwnerFn = nullptr; ^ 1 error generated.
1 parent 3e5afba commit ddf79de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ class RuntimeCallInserter {
656656
ArrayRef<Value *> Args = {},
657657
const Twine &Name = "") {
658658
assert(IRB.GetInsertBlock()->getParent() == OwnerFn);
659+
(void)OwnerFn;
659660
return IRB.CreateCall(Callee, Args, Name, nullptr);
660661
}
661662
};

0 commit comments

Comments
 (0)