[cfe-commits] r94024 - /cfe/trunk/include/clang/AST/TypeLoc.h
Daniel Dunbar
daniel at zuster.org
Wed Jan 20 13:13:38 PST 2010
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 {
More information about the cfe-commits
mailing list