diff options
author | Mike Stump <mrs@apple.com> | 2009-11-03 23:25:48 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-03 23:25:48 +0000 |
commit | df317bf71653eeb235da8337b1e8e790f9653aa4 (patch) | |
tree | 8addf18adb980760e48943b32c69747e4739b54f /lib/CodeGen/CodeGenFunction.h | |
parent | 014e88d94ff83e3aad4e33b16413a2d1817ec208 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 893f1ed880..9bb219642a 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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; } |