summaryrefslogtreecommitdiffstats
path: root/mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-05-14 09:29:30 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-05-20 13:41:46 -0700
commit6264fccd3a4af9edc37f9b6d0f37763e61800ba5 (patch)
treee05ee525937836d6d00c3b3f2b818a79436566e7 /mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h
parented47f59c2f330dedeba702cfd3e8136f201282c9 (diff)
downloadbcm5719-llvm-6264fccd3a4af9edc37f9b6d0f37763e61800ba5.tar.gz
bcm5719-llvm-6264fccd3a4af9edc37f9b6d0f37763e61800ba5.zip
When converting a location to an SMLoc, advance to the first non-whitespace if the column is unknown(zero). This also fixes a small bug with call stack printing.
Example: /tmp/file_C.py:21:5: error: 'foo.bar' op attribute 'something' raise app.UsageError('Too many command-line arguments.') ^ /tmp/file_D.py:20:3: note: called from if len(argv) > 1: ^ /tmp/file_E.py:19:1: note: called from def main(argv): ^ /tmp/file_F.py:24:3: note: called from app.run(main) ^ -- PiperOrigin-RevId: 248151212
Diffstat (limited to 'mlir/lib/FxpMathOps/Transforms/UniformKernelUtils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud