aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-03-15 00:42:55 +0000
committerEric Christopher <echristo@gmail.com>2013-03-15 00:42:55 +0000
commita286fc065a5bc846d73c8407a534a1d3c1d70b59 (patch)
tree618c90d5454bec0efdac987930a6464288717fc9 /include/llvm/ExecutionEngine
parentcba46dca4712fae8fd5354cd14e90f632d36f9be (diff)
downloadexternal_llvm-a286fc065a5bc846d73c8407a534a1d3c1d70b59.zip
external_llvm-a286fc065a5bc846d73c8407a534a1d3c1d70b59.tar.gz
external_llvm-a286fc065a5bc846d73c8407a534a1d3c1d70b59.tar.bz2
Silence anonymous type in anonymous union warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/GenericValue.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/GenericValue.h b/include/llvm/ExecutionEngine/GenericValue.h
index e160e3a..21b9942 100644
--- a/include/llvm/ExecutionEngine/GenericValue.h
+++ b/include/llvm/ExecutionEngine/GenericValue.h
@@ -24,11 +24,15 @@ typedef void* PointerTy;
class APInt;
struct GenericValue {
+ struct IntPair {
+ unsigned int first;
+ unsigned int second;
+ };
union {
double DoubleVal;
float FloatVal;
PointerTy PointerVal;
- struct { unsigned int first; unsigned int second; } UIntPairVal;
+ struct IntPair UIntPairVal;
unsigned char Untyped[8];
};
APInt IntVal; // also used for long doubles