[cfe-commits] r62068 - /cfe/trunk/lib/Basic/TargetInfo.cpp
Anders Carlsson
andersca at mac.com
Sun Jan 11 18:15:30 PST 2009
Author: andersca
Date: Sun Jan 11 20:15:29 2009
New Revision: 62068
URL: http://llvm.org/viewvc/llvm-project?rev=62068&view=rev
Log:
Make sure to initialize the ConstraintInfo to 0
Modified:
cfe/trunk/lib/Basic/TargetInfo.cpp
Modified: cfe/trunk/lib/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/TargetInfo.cpp?rev=62068&r1=62067&r2=62068&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/lib/Basic/TargetInfo.cpp Sun Jan 11 20:15:29 2009
@@ -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:
More information about the cfe-commits
mailing list