[llvm-commits] [dragonegg] r166667 - /dragonegg/trunk/src/TypeConversion.cpp
Chandler Carruth
chandlerc at gmail.com
Thu Oct 25 00:32:23 PDT 2012
Author: chandlerc
Date: Thu Oct 25 02:32:18 2012
New Revision: 166667
URL: http://llvm.org/viewvc/llvm-project?rev=166667&view=rev
Log:
Fix a bad mechanical edit to DragonEgg: this needed braces.
Modified:
dragonegg/trunk/src/TypeConversion.cpp
Modified: dragonegg/trunk/src/TypeConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/TypeConversion.cpp?rev=166667&r1=166666&r2=166667&view=diff
==============================================================================
--- dragonegg/trunk/src/TypeConversion.cpp (original)
+++ dragonegg/trunk/src/TypeConversion.cpp Thu Oct 25 02:32:18 2012
@@ -1463,12 +1463,13 @@
Type *Ty;
// LLVM does not support vectors of pointers, so turn any pointers into
// integers.
- if (isa<ACCESS_TYPE>(TREE_TYPE(type)))
+ if (isa<ACCESS_TYPE>(TREE_TYPE(type))) {
// FIXME: Need to get the Address space here.
unsigned AS = 0;
Ty = getDataLayout().getIntPtrType(Context, AS);
- else
+ } else {
Ty = ConvertTypeNonRecursive(main_type(type));
+ }
Ty = VectorType::get(Ty, TYPE_VECTOR_SUBPARTS(type));
return RememberTypeConversion(type, Ty);
}
More information about the llvm-commits
mailing list