aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2018-02-13 17:40:59 +0000
committerDimitry Andric <dimitry@andric.com>2018-02-13 17:40:59 +0000
commit1b1b80f45fdd116affb6bb7d0e08786cc5fee996 (patch)
tree57f5778baa43e0e5851cce179c6f3b0ce67e9398 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent38f52b2eb848e1b8564af6fa50626483ba6723d3 (diff)
downloadllvm-1b1b80f45fdd116affb6bb7d0e08786cc5fee996.zip
llvm-1b1b80f45fdd116affb6bb7d0e08786cc5fee996.tar.gz
llvm-1b1b80f45fdd116affb6bb7d0e08786cc5fee996.tar.bz2
Put type attributes after class keyword
Summary: Compiling `<functional>` in C++17 or higher mode results in: ``` functional:2500:1: warning: attribute '__visibility__' is ignored, place it after "class" to apply attribute to type declaration [-Wignored-attributes] _LIBCPP_TYPE_VIS ^ __config:701:46: note: expanded from macro '_LIBCPP_TYPE_VIS' # define _LIBCPP_TYPE_VIS __attribute__ ((__visibility__("default"))) ^ 1 warning generated. ``` Fix it by putting the attribute after the `class` keyword. Reviewers: EricWF, mclow.lists Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D43209 llvm-svn: 325027
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions