diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-12-16 01:56:27 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-16 01:56:27 +0000 |
commit | 7cc3d31e15a106e132532df1dc85291817665ef2 (patch) | |
tree | 1eca7bd7c525f6b182994d0a035afb40c8186c47 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 561dade58d0b142ea0d38001923f8441be3cf2fe (diff) | |
download | llvm-7cc3d31e15a106e132532df1dc85291817665ef2.zip llvm-7cc3d31e15a106e132532df1dc85291817665ef2.tar.gz llvm-7cc3d31e15a106e132532df1dc85291817665ef2.tar.bz2 |
Simplify the setup leading to the testing of ReadMemory(), ReadCStringFromMemory(), and ReadUnsignedFromMemory().
Instead of getting the location of the variable and converting the hex string to an int, just use
val.AddressOf().GetValueAsUnsigned() to compute the address of the memory region to read from.
llvm-svn: 146719
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions