[PATCH] D77936: [Windows SEH] Fix abnormal-exits in _try

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 11 14:24:19 PDT 2020


efriedma added inline comments.


================
Comment at: clang/lib/CodeGen/CGException.cpp:1651
+      llvm::Value* Load = CGF.Builder.CreateLoad(Addr, "cleanup.dest");
+      IsForEH = CGF.Builder.CreateTrunc(Load, CGM.Int8Ty);
+    }
----------------
Is just truncating the value really correct?  What's the possible range of values stored in getNormalCleanupDestSlot()?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77936





More information about the cfe-commits mailing list