[llvm] r219082 - Simplify code. No functionality change.
Benjamin Kramer
benny.kra at googlemail.com
Sun Oct 5 05:21:57 PDT 2014
Author: d0k
Date: Sun Oct 5 07:21:57 2014
New Revision: 219082
URL: http://llvm.org/viewvc/llvm-project?rev=219082&view=rev
Log:
Simplify code. No functionality change.
Modified:
llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp?rev=219082&r1=219081&r2=219082&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/NoAliasAnalysis.cpp Sun Oct 5 07:21:57 2014
@@ -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);
}
More information about the llvm-commits
mailing list