[cfe-commits] r65210 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Feb 20 16:58:02 PST 2009
Author: efriedma
Date: Fri Feb 20 18:58:02 2009
New Revision: 65210
URL: http://llvm.org/viewvc/llvm-project?rev=65210&view=rev
Log:
Slight tweak to last commit: make sure to copy CVR qualifiers for fixed
pointer types.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=65210&r1=65209&r2=65210&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Feb 20 18:58:02 2009
@@ -1429,7 +1429,9 @@
QualType FixedType =
TryToFixInvalidVariablyModifiedType(Pointee, Context, SizeIsNegative);
if (FixedType.isNull()) return FixedType;
- return Context.getPointerType(FixedType);
+ FixedType = Context.getPointerType(FixedType);
+ FixedType.setCVRQualifiers(T.getCVRQualifiers());
+ return FixedType;
}
const VariableArrayType* VLATy = dyn_cast<VariableArrayType>(T);
More information about the cfe-commits
mailing list