summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-08-19 21:51:08 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-08-19 21:51:08 +0000
commit96b02d1573895ec0dc71e1605d9b36e825c35987 (patch)
tree94cb0d45d420056e785517ffcb5bce6a0c18a64c /llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
parentf436e9efbe9c17ecc408846658c150c1f81b17c0 (diff)
downloadbcm5719-llvm-96b02d1573895ec0dc71e1605d9b36e825c35987.tar.gz
bcm5719-llvm-96b02d1573895ec0dc71e1605d9b36e825c35987.zip
Delete unused argument in AArch64MCInstLower constructor: it doesn't
use Mangler, and Mangler is in fact not even created when AArch64MCInstLower is constructed. This bug is reported by UBSan. llvm-svn: 216030
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
index a437d29161d..8bee4f51351 100644
--- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
@@ -54,7 +54,7 @@ public:
AArch64AsmPrinter(TargetMachine &TM, MCStreamer &Streamer)
: AsmPrinter(TM, Streamer),
Subtarget(&TM.getSubtarget<AArch64Subtarget>()),
- MCInstLowering(OutContext, *Mang, *this), SM(*this), AArch64FI(nullptr),
+ MCInstLowering(OutContext, *this), SM(*this), AArch64FI(nullptr),
LOHLabelCounter(0) {}
const char *getPassName() const override {
OpenPOWER on IntegriCloud