[PATCH] D119438: [fir] Fix FlangOptimizerTests link on Solaris

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 07:10:13 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc2b9e9674d52: [fir] Fix FlangOptimizerTests link on Solaris (authored by ro).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119438/new/

https://reviews.llvm.org/D119438

Files:
  flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h


Index: flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
===================================================================
--- flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
+++ flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
@@ -100,6 +100,12 @@
   };
 }
 template <>
+constexpr TypeBuilderFunc getModel<char>() {
+  return [](mlir::MLIRContext *context) -> mlir::Type {
+    return mlir::IntegerType::get(context, 8 * sizeof(char));
+  };
+}
+template <>
 constexpr TypeBuilderFunc getModel<signed char>() {
   return [](mlir::MLIRContext *context) -> mlir::Type {
     return mlir::IntegerType::get(context, 8 * sizeof(signed char));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119438.407527.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220210/bf2458ee/attachment.bin>


More information about the llvm-commits mailing list