aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-08-22 13:26:37 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-08-22 13:26:37 +0000
commite9c6479c4dfc44abcec945de1bf924c37d819acc (patch)
tree896e6a4dd4ae45d599cfd221807c78d071665634
parentea2402ebf4a2ca97726a1c668c542547c8c9e5bb (diff)
downloadllvm-e9c6479c4dfc44abcec945de1bf924c37d819acc.zip
llvm-e9c6479c4dfc44abcec945de1bf924c37d819acc.tar.gz
llvm-e9c6479c4dfc44abcec945de1bf924c37d819acc.tar.bz2
Fixing MSVC warning: "warning C4373: 'blah': virtual function overrides 'blah', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers."
This warning is basically useless because the "previous versions" being referred to is MSVC 2005 and earlier, and we obviously do not care about them. However, this warning isn't particularly chatty (I don't recall ever seeing it previously), and it has the opportunity to point out cases where the cv-qualifiers differ unintentionally (like this case), so I am leaving it enabled for now. llvm-svn: 216267
-rw-r--r--clang/lib/Basic/Targets.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 2e65589..4998ca3 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -4146,8 +4146,7 @@ public:
return R;
}
bool
- validateConstraintModifier(StringRef Constraint, const char Modifier,
- unsigned Size,
+ validateConstraintModifier(StringRef Constraint, char Modifier, unsigned Size,
std::string &SuggestedModifier) const override {
bool isOutput = (Constraint[0] == '=');
bool isInOut = (Constraint[0] == '+');
@@ -4595,8 +4594,7 @@ public:
}
bool
- validateConstraintModifier(StringRef Constraint, const char Modifier,
- unsigned Size,
+ validateConstraintModifier(StringRef Constraint, char Modifier, unsigned Size,
std::string &SuggestedModifier) const override {
// Strip off constraint modifiers.
while (Constraint[0] == '=' || Constraint[0] == '+' || Constraint[0] == '&')