Skip to content
Snippets Groups Projects
Commit 78ce1c7c authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Forgot to commit DFG2LLVM_NVPTX cpp

parent d34ee8b9
No related branches found
No related tags found
No related merge requests found
...@@ -352,6 +352,7 @@ void CodeGenTraversal::initRuntimeAPI() { ...@@ -352,6 +352,7 @@ void CodeGenTraversal::initRuntimeAPI() {
// Insert print instruction at visc exit // Insert print instruction at visc exit
Function* VC = M.getFunction("llvm.visc.cleanup"); Function* VC = M.getFunction("llvm.visc.cleanup");
errs() << *VC << "\n";
assert(VC->getNumUses() == 1 && "__visc__clear should only be used once"); assert(VC->getNumUses() == 1 && "__visc__clear should only be used once");
I = cast<Instruction>(*VC->use_begin()); I = cast<Instruction>(*VC->use_begin());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment