aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r--lib/Basic/TargetInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index 82b6c190cd..923a75d622 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/lib/Basic/TargetInfo.cpp
@@ -180,7 +180,7 @@ bool TargetInfo::validateOutputConstraint(const char *Name,
while (*Name) {
switch (*Name) {
default:
- if (!validateAsmConstraint(*Name, info)) {
+ if (!validateAsmConstraint(Name, info)) {
// FIXME: We temporarily return false
// so we can add more constraints as we hit it.
// Eventually, an unknown constraint should just be treated as 'g'.
@@ -258,7 +258,7 @@ bool TargetInfo::validateInputConstraint(const char *Name,
// The constraint should have the same info as the respective
// output constraint.
info = (ConstraintInfo)(info|OutputConstraints[i]);
- } else if (!validateAsmConstraint(*Name, info)) {
+ } else if (!validateAsmConstraint(Name, info)) {
// FIXME: This error return is in place temporarily so we can
// add more constraints as we hit it. Eventually, an unknown
// constraint should just be treated as 'g'.