Make sure to initialize the ConstraintInfo to 0
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62068 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index 4415082..05004b7 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/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: