LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 22419 - Enforce default visibilty for implicit declarations of sized deallocation functions.
Summary: Enforce default visibilty for implicit declarations of sized deallocation fun...
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: C++14 (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: Larisse Voufo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-30 17:28 PST by Larisse Voufo
Modified: 2015-02-03 20:48 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larisse Voufo 2015-01-30 17:28:23 PST
The following should not mark the (implicit) sized deallocation function "hidden", but it currently does.

$ echo 'void f(int *p) { delete p; }' | ./build/bin/clang -x c++ - -emit-llvm -S -o - -std=c++14 -fvisibility=hidden

Output:
------- 

[...]

; Function Attrs: nobuiltin nounwind ssp uwtable
define linkonce hidden void @_ZdlPvm(i8*, i64) #1 {
entry:

[...]
Comment 1 Larisse Voufo 2015-02-03 20:48:18 PST
Resolved by r228066.