aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-31 13:20:44 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-31 13:20:44 -0700
commitc1640a924643d0b3d3616c2a41f70918d6150301 (patch)
tree8bf2b3d56c08aba6b370608694dbfee8b330d86e /src
parent4c1f0f02d021f7897e530c4406607a959bdb5c79 (diff)
downloadzig-c1640a924643d0b3d3616c2a41f70918d6150301.tar.gz
zig-c1640a924643d0b3d3616c2a41f70918d6150301.zip
parseh: use the decayed type not original type
Diffstat (limited to 'src')
-rw-r--r--src/parseh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseh.cpp b/src/parseh.cpp
index 78db01f2ce..8a15363084 100644
--- a/src/parseh.cpp
+++ b/src/parseh.cpp
@@ -481,7 +481,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
case Type::Decayed:
{
const DecayedType *decayed_ty = static_cast<const DecayedType *>(ty);
- return resolve_qual_type(c, decayed_ty->getOriginalType(), decl);
+ return resolve_qual_type(c, decayed_ty->getDecayedType(), decl);
}
case Type::BlockPointer:
case Type::LValueReference: