[PATCH] D44802: Add the ShadowCallStack pass
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 22 14:01:17 PDT 2018
eugenis added inline comments.
================
Comment at: lib/Target/X86/ShadowCallStack.cpp:95
+ if (MBB->empty())
+ Noop = BuildMI(MBB, DL, TII->get(X86::NOOP));
+
----------------
AFAIK you can do it without a dummy instruction by using the iterator form of BuildMI and passing MBB->end() or MBB->begin() in case of the empty basic block.
Repository:
rL LLVM
https://reviews.llvm.org/D44802
More information about the llvm-commits
mailing list