[PATCH] D33850: Inlining: Don't re-map simplified cloned instructions.

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 21 23:24:46 PDT 2017


sanjoy added inline comments.


================
Comment at: lib/Transforms/Utils/CloneFunction.cpp:329
+        assert((!isa<Instruction>(V) ||
+                dyn_cast<Instruction>(V)->getParent() == nullptr ||
+                dyn_cast<Instruction>(V)->getFunction() != OldFunc ||
----------------
You should be able to use `cast<>` instead of `dyn_cast<>`.


Repository:
  rL LLVM

https://reviews.llvm.org/D33850





More information about the llvm-commits mailing list