From 9ff64a8c635d0212fd7c97564d384ec583e23f5d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Aug 2001 18:54:45 +0000 Subject: [PATCH] I suck git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@385 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetMachine/TargetData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/TargetMachine/TargetData.cpp b/lib/CodeGen/TargetMachine/TargetData.cpp index 7ab0a6a2060..0d23206d991 100644 --- a/lib/CodeGen/TargetMachine/TargetData.cpp +++ b/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 &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;