diff options
author | Craig Topper <craig.topper@intel.com> | 2018-06-22 22:28:39 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-06-22 22:28:39 +0000 |
commit | 10e2f73793981045ae35239fc5590d131a486f11 (patch) | |
tree | eb59d9b9bd7820d1e2053da0e4c2eb16ddd48c07 /llvm/lib/Analysis/ObjCARCAnalysisUtils.cpp | |
parent | 1e2d5cb06c4543f0c49beb8b585d63a90e915499 (diff) | |
download | bcm5719-llvm-10e2f73793981045ae35239fc5590d131a486f11.tar.gz bcm5719-llvm-10e2f73793981045ae35239fc5590d131a486f11.zip |
[X86][AsmParser] Keep track of whether an explicit scale was specified while parsing an address in Intel syntax. Use it for improved error checking.
This allows us to check these:
-16-bit addressing doesn't support scale so we should error if we find one there.
-Multiplying ESP/RSP by a scale even if the scale is 1 should be an error because ESP/RSP can't be an index.
llvm-svn: 335398
Diffstat (limited to 'llvm/lib/Analysis/ObjCARCAnalysisUtils.cpp')
0 files changed, 0 insertions, 0 deletions