Using the new external-linkage warning recently added instead of disabling all return type warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2012-02-14 21:44:03 +00:00
parent da32e46936
commit 010ad7d353

View File

@ -303,7 +303,7 @@ GenericValue Interpreter::callExternalFunction(Function *F,
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreturn-type"
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
#endif
extern "C" { // Don't add C++ manglings to llvm mangling :)