[PATCH] D14474: Also map the personality function in CloneFunctionInto
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 15 19:55:48 PST 2015
loladiro added inline comments.
================
Comment at: lib/Transforms/Utils/CloneFunction.cpp:99
@@ +98,3 @@
+ // Fix up the personality function that got copied over
+ if (NewFunc->hasPersonalityFn())
+ NewFunc->setPersonalityFn(
----------------
majnemer wrote:
> Shouldn't this be `OldFunc->hasPersonalityFn()`?
It doesn't matter, because it gets copied over above, but sure, I'll change it to make it more clear what's going on here.
Repository:
rL LLVM
http://reviews.llvm.org/D14474
More information about the llvm-commits
mailing list