projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjust to the changed StructType interface. In particular, getElementTypes() is...
[oota-llvm.git]
/
lib
/
Transforms
/
TransformInternals.cpp
diff --git
a/lib/Transforms/TransformInternals.cpp
b/lib/Transforms/TransformInternals.cpp
index eb20544344b4b272bc4f445ad4aeafe7c81b3a71..9039f5909543fa4a576dd965c46d222b4cae9da6 100644
(file)
--- a/
lib/Transforms/TransformInternals.cpp
+++ b/
lib/Transforms/TransformInternals.cpp
@@
-62,7
+62,7
@@
const Type *llvm::getStructOffsetType(const Type *Ty, unsigned &Offset,
uint64_t ThisOffset;
const Type *NextType;
if (const StructType *STy = dyn_cast<StructType>(Ty)) {
- if (STy->get
ElementTypes().empty
()) {
+ if (STy->get
NumElements
()) {
Offset = 0;
return STy;
}