Author: ddunbar
Date: Wed Jan 20 15:13:31 2010
New Revision: 94024

URL: http://llvm.org/viewvc/llvm-project?rev=94024&view=rev
Log:
Use sizeof() instead of hard-coding a size for WrittenBuiltinSpecs, eek!

Modified:
    cfe/trunk/include/clang/AST/TypeLoc.h

Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=94024&r1=94023&r2=94024&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Wed Jan 20 15:13:31 2010
@@ -410,7 +410,7 @@
   }
 
   unsigned getExtraLocalDataSize() const {
-    return needsExtraLocalData() ? 4 : 0;
+    return needsExtraLocalData() ? sizeof(WrittenBuiltinSpecs) : 0;
   }
 
   SourceRange getSourceRange() const {


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to