summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetMachine
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/TargetMachine')
-rw-r--r--llvm/lib/CodeGen/TargetMachine/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetMachine/TargetData.cpp b/llvm/lib/CodeGen/TargetMachine/TargetData.cpp
index 7ab0a6a2060..0d23206d991 100644
--- a/llvm/lib/CodeGen/TargetMachine/TargetData.cpp
+++ b/llvm/lib/CodeGen/TargetMachine/TargetData.cpp
@@ -146,7 +146,7 @@ unsigned char TargetData::getTypeAlignment(const Type *Ty) const {
unsigned TargetData::getIndexedOffset(const Type *ptrTy,
const vector<ConstPoolVal*> &Idx) const {
- const PointerType *PtrTy = PtrTy->isPointerType(); // Returns null if not
+ const PointerType *PtrTy = ptrTy->isPointerType(); // Returns null if not
assert(PtrTy && "getIndexedOffset on nonpointer!");
unsigned Result = 0;
OpenPOWER on IntegriCloud