I suck
authorChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 18:54:45 +0000 (18:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 18:54:45 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetMachine/TargetData.cpp

index 7ab0a6a2060fa657a9414be1d7792f5c13d1c0d9..0d23206d991a7884304a248cb6b54f01c673ab7d 100644 (file)
@@ -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;