summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/RDFGraph.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2016-07-22 16:05:35 +0000
committerSamuel Antao <sfantao@us.ibm.com>2016-07-22 16:05:35 +0000
commit71fef77dcbef3884e98e2caf50cf69f071383e55 (patch)
tree09d2339778402aafcdc28f39c156b6463ee244ae /llvm/lib/Target/Hexagon/RDFGraph.cpp
parentb383d628dffb30b4ac63c346ca4a21a980bdfdd0 (diff)
downloadbcm5719-llvm-71fef77dcbef3884e98e2caf50cf69f071383e55.tar.gz
bcm5719-llvm-71fef77dcbef3884e98e2caf50cf69f071383e55.zip
Replace enum types in variadic functions by build-in types.
Summary: When compiling the runtime library with clang we get warnings like: ``` error: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Werror,-Wvarargs] va_start( args, id ); ^ note: parameter of type 'kmp_i18n_id_t' (aka 'kmp_i18n_id') is declared here kmp_i18n_id_t id, ``` My understanding is that the va_start macro only gets the promoted type so it won't know what was the exact type of the argument, which can potentially not work for some targets given that the implementation of the the calling convention could not be done properly. This patch fixes that by using a built-in type in the function signature. Reviewers: tlwilmar, jlpeyton, AndreyChurbanov Subscribers: arpith-jacob, carlo.bertolli, caomhin, openmp-commits Differential Revision: https://reviews.llvm.org/D22427 llvm-svn: 276428
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFGraph.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud