[llvm-commits] [dragonegg] r129350 - /dragonegg/trunk/Constants.cpp
Duncan Sands
baldrick at free.fr
Mon Apr 11 22:39:27 PDT 2011
Author: baldrick
Date: Tue Apr 12 00:39:27 2011
New Revision: 129350
URL: http://llvm.org/viewvc/llvm-project?rev=129350&view=rev
Log:
Now that array constructors take care not to be too aligned,
so if we can self-host build with this check turned on.
Modified:
dragonegg/trunk/Constants.cpp
Modified: dragonegg/trunk/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Constants.cpp?rev=129350&r1=129349&r2=129350&view=diff
==============================================================================
--- dragonegg/trunk/Constants.cpp (original)
+++ dragonegg/trunk/Constants.cpp Tue Apr 12 00:39:27 2011
@@ -1148,10 +1148,9 @@
if (isInt64(TREE_TYPE(exp), true) && InitSize != TypeSize)
DieAbjectly("Constant too big for type!", exp);
}
-// FIXME: This check fails when building libdecnumber (self-host build).
-// if (getTargetData().getABITypeAlignment(Init->getType()) * 8 >
-// TYPE_ALIGN(TREE_TYPE(exp)))
-// DieAbjectly("Constant over aligned!", exp);
+ if (getTargetData().getABITypeAlignment(Init->getType()) * 8 >
+ TYPE_ALIGN(TREE_TYPE(exp)))
+ DieAbjectly("Constant over aligned!", exp);
#endif
return Init;
More information about the llvm-commits
mailing list