aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-04-16 22:48:15 +0000
committerJohn McCall <rjmccall@apple.com>2013-04-16 22:48:15 +0000
commitc8e01705787c984838a16e66e2f9af017f5602a5 (patch)
treef5a692b406b0b4c72fa4a2e97b676a7bd56014b8 /clang/lib/CodeGen/CGDecl.cpp
parent0d9dd73847a3ce679f7f17e113158e9ecb9ce04e (diff)
downloadllvm-c8e01705787c984838a16e66e2f9af017f5602a5.zip
llvm-c8e01705787c984838a16e66e2f9af017f5602a5.tar.gz
llvm-c8e01705787c984838a16e66e2f9af017f5602a5.tar.bz2
Standardize accesses to the TargetInfo in IR-gen.
Patch by Stephen Lin! llvm-svn: 179638
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 173ca6c..9ad9cf0 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -900,7 +900,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
CharUnits allocaAlignment = alignment;
if (isByRef)
allocaAlignment = std::max(allocaAlignment,
- getContext().toCharUnitsFromBits(Target.getPointerAlign(0)));
+ getContext().toCharUnitsFromBits(getTarget().getPointerAlign(0)));
Alloc->setAlignment(allocaAlignment.getQuantity());
DeclPtr = Alloc;