Make sure to initialize the ConstraintInfo to 0
llvm-svn: 62068
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp
index 4415082..05004b7 100644
--- a/clang/lib/Basic/TargetInfo.cpp
+++ b/clang/lib/Basic/TargetInfo.cpp
@@ -147,6 +147,8 @@
bool TargetInfo::validateOutputConstraint(const char *Name,
ConstraintInfo &info) const
{
+ info = CI_None;
+
// An output constraint must start with '=' or '+'
if (*Name != '=' && *Name != '+')
return false;
@@ -188,6 +190,8 @@
bool TargetInfo::validateInputConstraint(const char *Name,
unsigned NumOutputs,
ConstraintInfo &info) const {
+ info = CI_None;
+
while (*Name) {
switch (*Name) {
default: