mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 16:47:41 +00:00
[Statepoint] Improve two asserts, fix some style (NFC)
Summary: It's important that our users immediately know what gc.safepoint_poll is. Also fix the style of the declaration of CreateGCStatepoint, in preparation for another change that will wrap it. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7517 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228626 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69a5c89128
commit
4ee0217aee
lib/Transforms/Scalar
@ -741,7 +741,8 @@ InsertSafepointPoll(DominatorTree &DT, Instruction *term,
|
||||
// different type inserted previously
|
||||
Function *F =
|
||||
dyn_cast<Function>(M->getOrInsertFunction("gc.safepoint_poll", ftype));
|
||||
assert(F && !F->empty() && "definition must exist");
|
||||
assert(F && "void @gc.safepoint_poll() must be defined");
|
||||
assert(!F->empty() && "gc.safepoint_poll must be a non-empty function");
|
||||
CallInst *poll = CallInst::Create(F, "", term);
|
||||
|
||||
// Record some information about the call site we're replacing
|
||||
|
Loading…
x
Reference in New Issue
Block a user