[PATCH] D124916: [X86] Fix uninitialized variable warnings in cetintrin.h reported by #55224
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 4 09:33:20 PDT 2022
craig.topper added inline comments.
================
Comment at: clang/lib/Headers/cetintrin.h:48
+#pragma clang diagnostic ignored "-Wuninitialized"
unsigned int t;
return __builtin_ia32_rdsspd(t);
----------------
So if CET isn't enabled this intrinsic returns a random value instead of 0 like _get_ssp?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124916/new/
https://reviews.llvm.org/D124916
More information about the cfe-commits
mailing list