[mlir][LLVMDebugTranslation] Move the check for FusedLoc scope
authorRiver Riddle <riddleriver@gmail.com>
Tue, 8 Nov 2022 03:02:18 +0000 (19:02 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 8 Nov 2022 21:00:05 +0000 (13:00 -0800)
commit7c5362c7ffd2c61c06d6831706a16a0743ec8d01
treed611307dd416276eaa31bcb1f68cfc9958a9a263
parent7c849845e09a90fa9948afb207e755bbecb80484
[mlir][LLVMDebugTranslation] Move the check for FusedLoc scope

Shift it to where we already check for FusedLoc, which removes the
need to cast multiple times.
mlir/lib/Target/LLVMIR/DebugTranslation.cpp