aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJoe Ellis <joe.ellis@arm.com>2020-10-26 17:40:17 +0000
committerJoe Ellis <joe.ellis@arm.com>2020-10-26 17:40:19 +0000
commit0383a1a8c230581aec4f2d9d4bfb5f5ed32d2bf5 (patch)
treeef2b33e44731ffc99d7fb36ea3bad728c18f6042 /clang/lib/CodeGen/CodeGenModule.cpp
parent467e5cf40f5da942419624d6a722567976b28a45 (diff)
downloadllvm-0383a1a8c230581aec4f2d9d4bfb5f5ed32d2bf5.zip
llvm-0383a1a8c230581aec4f2d9d4bfb5f5ed32d2bf5.tar.gz
llvm-0383a1a8c230581aec4f2d9d4bfb5f5ed32d2bf5.tar.bz2
[SVE][AArch64] Fix TypeSize warning in GEP cost analysis
The warning would fire when calling getGEPCost for analyzing the cost of a GEP instruction. This would result in the use of the now deprecated implicit cast of TypeSize to uint64_t through the overloaded operator. This patch fixes the issue by using getKnownMinSize instead of the implicit cast. This is possible because the code is already scalable-vector aware. The semantic behaviour of the code is unchanged by this patch. Reviewed By: sdesmalen, fpetrogalli Differential Revision: https://reviews.llvm.org/D89872
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions