[cfe-commits] r163202 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Jin-Gu Kang
jaykang10 at imrc.kist.re.kr
Wed Sep 5 01:37:43 PDT 2012
Author: jaykang10
Date: Wed Sep 5 03:37:43 2012
New Revision: 163202
URL: http://llvm.org/viewvc/llvm-project?rev=163202&view=rev
Log:
Changing of type checking order on InitListExpr
- UnionType is checked eariler than RecordType.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=163202&r1=163201&r2=163202&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Wed Sep 5 03:37:43 2012
@@ -830,12 +830,12 @@
if (ILE->getType()->isArrayType())
return EmitArrayInitialization(ILE);
- if (ILE->getType()->isRecordType())
- return EmitStructInitialization(ILE);
-
if (ILE->getType()->isUnionType())
return EmitUnionInitialization(ILE);
+ if (ILE->getType()->isRecordType())
+ return EmitStructInitialization(ILE);
+
return 0;
}
More information about the cfe-commits
mailing list