summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-03 23:25:48 +0000
committerMike Stump <mrs@apple.com>2009-11-03 23:25:48 +0000
commit53f9ded62b69c259f96be86fecc3c15e2398d404 (patch)
tree7cba35759b6638041ee875df4b302a5448e18a5b /clang/lib/CodeGen/CodeGenFunction.h
parent3cf81317e40d52a485aa38a00dbb0fa31bd2373e (diff)
downloadbcm5719-llvm-53f9ded62b69c259f96be86fecc3c15e2398d404.tar.gz
bcm5719-llvm-53f9ded62b69c259f96be86fecc3c15e2398d404.zip
Refine volatile handling, specifically, we must have the canonical
type to look at the volatile specifier. I found these all from just hand auditing the code. llvm-svn: 85967
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 893f1ed8801..9bb219642ab 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -517,7 +517,7 @@ public:
//===--------------------------------------------------------------------===//
Qualifiers MakeQualifiers(QualType T) {
- Qualifiers Quals = T.getQualifiers();
+ Qualifiers Quals = getContext().getCanonicalType(T).getQualifiers();
Quals.setObjCGCAttr(getContext().getObjCGCAttrKind(T));
return Quals;
}
OpenPOWER on IntegriCloud