- Nov 16, 2009
-
-
Devang Patel authored
llvm-svn: 88973
-
David Greene authored
Fix an expensive-checks error. The Mask and LHSMask may not be of the same size, so don't do the transformation if they're different. llvm-svn: 88972
-
Eli Friedman authored
llvm-svn: 88971
-
Douglas Gregor authored
sugared types. The basic problem is that our qualifier accessors (getQualifiers, getCVRQualifiers, isConstQualified, etc.) only look at the current QualType and not at any qualifiers that come from sugared types, meaning that we won't see these qualifiers through, e.g., typedefs: typedef const int CInt; typedef CInt Self; Self.isConstQualified() currently returns false! Various bugs (e.g., PR5383) have cropped up all over the front end due to such problems. I'm addressing this problem by splitting each qualifier accessor into two versions: - the "local" version only returns qualifiers on this particular QualType instance - the "normal" version that will eventually combine qualifiers from this QualType instance with the qualifiers on the canonical type to produce the full set of qualifiers. This commit adds the local versions and switches a few callers from the "normal" version (e.g., isConstQualified) over to the "local" version (e.g., isLocalConstQualified) when that is the right thing to do, e.g., because we're printing or serializing the qualifiers. Also, switch a bunch of Context.getCanonicalType(T1).getUnqualifiedType() == Context.getCanonicalType(T2).getQualifiedType() expressions over to Context.hasSameUnqualifiedType(T1, T2) llvm-svn: 88969
-
Eli Friedman authored
more cases. No intended visible change. llvm-svn: 88968
-
Mike Stump authored
llvm-svn: 88966
-
Devang Patel authored
llvm-svn: 88965
-
Jim Grosbach authored
llvm-svn: 88964
-
Devang Patel authored
llvm-svn: 88963
-
Eli Friedman authored
llvm-svn: 88962
-
Jim Grosbach authored
llvm-svn: 88961
-
Sebastian Redl authored
Repair broken FindCompositePointerType. Correct early termination condition. Get CVR qualifiers from canonical types. Traverse collected qualifiers in reverse order on rebuilding the pointer, so that we don't swap inner and outer qualifiers. That last one fixes PR5509. llvm-svn: 88960
-
Dan Gohman authored
llvm-svn: 88959
-
Dan Gohman authored
llvm-svn: 88957
-
Dan Gohman authored
llvm-svn: 88956
-
Dan Gohman authored
FixedStackPseudoSourceValueVal, to respect this isa relationship. llvm-svn: 88954
-
Dan Gohman authored
llvm-svn: 88953
-
Eli Friedman authored
llvm-svn: 88952
-
Devang Patel authored
llvm-svn: 88951
-
Ted Kremenek authored
llvm-svn: 88949
-
Jim Grosbach authored
llvm-svn: 88947
-
Lang Hames authored
llvm-svn: 88946
-
Rafael Espindola authored
llvm-svn: 88945
-
Mike Stump authored
llvm-svn: 88944
-
Rafael Espindola authored
llvm-svn: 88943
-
Jim Grosbach authored
llvm-svn: 88942
-
Mike Stump authored
llvm-svn: 88941
-
Bob Wilson authored
llvm-svn: 88940
-
Devang Patel authored
llvm-svn: 88939
-
Eli Friedman authored
treat it as a unary operator. llvm-svn: 88938
-
David Chisnall authored
llvm-svn: 88937
-
Jim Grosbach authored
usage of block sizes and offsets. llvm-svn: 88935
-
Fariborz Jahanian authored
gracefully, on par with gcc, by: Issuing a warning, doing final sematinc check of its definitions and generating its meta-data. llvm-svn: 88934
-
Jim Grosbach authored
llvm-svn: 88933
-
Bob Wilson authored
llvm-svn: 88932
-
Bob Wilson authored
llvm-svn: 88929
-
Mike Stump authored
llvm-svn: 88928
-
Bob Wilson authored
llvm-svn: 88927
-
Jim Grosbach authored
llvm-svn: 88921
-
Jim Grosbach authored
llvm-svn: 88919
-