[llvm-commits] [dragonegg] r166615 - /dragonegg/trunk/src/TypeConversion.cpp
Micah Villmow
villmow at gmail.com
Wed Oct 24 13:10:45 PDT 2012
Author: mvillmow
Date: Wed Oct 24 15:10:44 2012
New Revision: 166615
URL: http://llvm.org/viewvc/llvm-project?rev=166615&view=rev
Log:
Fix a build issue with dragonegg because of initialization across switch blocks.
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=166615&r1=166614&r2=166615&view=diff
==============================================================================
--- dragonegg/trunk/src/TypeConversion.cpp (original)
+++ dragonegg/trunk/src/TypeConversion.cpp Wed Oct 24 15:10:44 2012
@@ -456,11 +456,11 @@
return StructType::get(EltTy, EltTy, NULL);
}
- case OFFSET_TYPE:
+ case OFFSET_TYPE: {
// FIXME: Need to get the Address space here.
unsigned AS = 0;
return getDataLayout().getIntPtrType(Context, AS);
-
+ }
case POINTER_TYPE:
case REFERENCE_TYPE:
// void* -> byte*
@@ -1418,7 +1418,7 @@
return RememberTypeConversion(type, Ty);
}
- case OFFSET_TYPE:
+ case OFFSET_TYPE: {
// Handle OFFSET_TYPE specially. This is used for pointers to members,
// which are really just integer offsets. Return the appropriate integer
// type directly.
@@ -1426,7 +1426,7 @@
// FIXME: Need to get the Address space here.
unsigned AS = 0;
return CheckTypeConversion(type, getDataLayout().getIntPtrType(Context, AS));
-
+ }
case REAL_TYPE:
// Caching the type conversion is not worth it.
switch (TYPE_PRECISION(type)) {
More information about the llvm-commits
mailing list