From 76c2cb4e44ee4e83df6c46248126f1e611d3f7a6 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 23 May 2008 16:57:00 +0000 Subject: Fix another isFirstClassType that now needs to be isSingleValueType. This fixes recent CBE regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 4473af1..251b9f9 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -913,7 +913,7 @@ void CWriter::printConstant(Constant *CPV) { << *CE << "\n"; abort(); } - } else if (isa(CPV) && CPV->getType()->isFirstClassType()) { + } else if (isa(CPV) && CPV->getType()->isSingleValueType()) { Out << "(("; printType(Out, CPV->getType()); // sign doesn't matter Out << ")/*UNDEF*/"; -- cgit v1.1