From 740cc2672a34e57443a0735d3f98d1312ee00b67 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 5 Oct 2014 12:21:57 +0000 Subject: [PATCH] Simplify code. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219082 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/NoAliasAnalysis.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/NoAliasAnalysis.cpp b/lib/Analysis/NoAliasAnalysis.cpp index 483a81e93a7..c214d3cdf17 100644 --- a/lib/Analysis/NoAliasAnalysis.cpp +++ b/lib/Analysis/NoAliasAnalysis.cpp @@ -57,10 +57,8 @@ namespace { Location getArgLocation(ImmutableCallSite CS, unsigned ArgIdx, ModRefResult &Mask) override { Mask = ModRef; - AAMDNodes AATags( - CS.getInstruction()->getMetadata(LLVMContext::MD_tbaa), - CS.getInstruction()->getMetadata(LLVMContext::MD_alias_scope), - CS.getInstruction()->getMetadata(LLVMContext::MD_noalias)); + AAMDNodes AATags; + CS->getAAMetadata(AATags); return Location(CS.getArgument(ArgIdx), UnknownSize, AATags); }