[llvm-dev] Value* from ValueAsMetadata::getValue() gone

Welson Sun via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 26 11:47:29 PST 2017

So this is the two lines of code:

        ValueAsMetadata *v =
        Value *val = v->getValue();

After executing these two lines, in gdb:
(gdb) print val
$1 = (llvm::Value *) 0x0
(gdb) print v->getValue()
$2 = (llvm::Value *) 0x4346d68

How could this happen?

- Welson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170126/9ad1aa0d/attachment.html>

More information about the llvm-dev mailing list