diff --git a/include/circt/Dialect/HW/HWTypes.td b/include/circt/Dialect/HW/HWTypes.td index f2f8c1c8bceb..431ed6c34857 100644 --- a/include/circt/Dialect/HW/HWTypes.td +++ b/include/circt/Dialect/HW/HWTypes.td @@ -39,7 +39,7 @@ def HWNonInOutType : DialectType($_self)">, - "InOutType", "InOutType">; + "InOutType", "::circt::hw::InOutType">; class InOutTypeOf allowedTypes> : ContainerType, CPred<"::circt::hw::type_isa<::circt::hw::InOutType>($_self)">, @@ -62,7 +62,7 @@ def StructType : DialectType($_self)">, - "a UnionType", "::circt::hw::TypeAliasOr">; + "a UnionType", "::circt::hw::TypeAliasOr<::circt::hw::UnionType>">; // A handle to refer to circt::hw::EnumType in ODS. def EnumType : DialectType(loc, preValue, one).getResult() : builder.create(loc, preValue, one).getResult(); builder.create(loc, arg, postValue); - return isPost ? preValue : postValue; + if (isPost) + return preValue; + return postValue; } // Handle unary operators. diff --git a/llvm b/llvm index 5689cccead7b..c69b8c445a6b 160000 --- a/llvm +++ b/llvm @@ -1 +1 @@ -Subproject commit 5689cccead7b70d8eeae4c641e8078e6d3c50b9a +Subproject commit c69b8c445a6b7efd29e67b665adaf04575f3ed92